Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default function App() {
- const fetchTodos = useActions(actions => actions.fetchTodos);
- useEffect(() => {
- fetchTodos();
- }, [fetchTodos]);
- return (
- <div>
- <h1 style={{ margin: 0 }}>Todo</h1>
- <Todos />
- <AddTodo />
- </div>
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement