Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. export default function App() {
  2. const fetchTodos = useActions(actions => actions.fetchTodos);
  3. useEffect(() => {
  4. fetchTodos();
  5. }, [fetchTodos]);
  6. return (
  7. <div>
  8. <h1 style={{ margin: 0 }}>Todo</h1>
  9. <Todos />
  10. <AddTodo />
  11. </div>
  12. );
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement