import React, { useState, useEffect } from 'react'; import { Poll } from 'which-types'; import Feed from '../../components/Feed/Feed'; import { get } from '../../requests'; interface PropTypes { navigate: (prefix: string, id: string) => void; } const FeedPage: React.FC = ({ navigate }) => { const [polls, setPolls] = useState([]); useEffect(() => { get('/polls').then(response => { setPolls(response.data); }); }, []); return ; }; export default FeedPage;