Created
June 8, 2019 22:10
-
-
Save cevr/f76a7558eb82aee6574df675b34709bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function App() { | |
const fetchTodos = useActions(actions => actions.fetchTodos); | |
useEffect(() => { | |
fetchTodos(); | |
}, [fetchTodos]); | |
return ( | |
<div> | |
<h1 style={{ margin: 0 }}>Todo</h1> | |
<Todos /> | |
<AddTodo /> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, thank you very much for clearing my mind. I see now that it was intentional.