Created
July 10, 2020 06:42
-
-
Save mcjcloud/5a0d9eb9b0eb51c39bba8a3883277c89 to your computer and use it in GitHub Desktop.
Asterisk Medium Article: todo page hooks
This file contains 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
const dispatch = useDispatch() | |
// complete and incomplete todos | |
// these are fetched from redux | |
const completeTodos = useSelector(selectCompleteTodos) | |
const incompleteTodos = useSelector(selectIncompleteTodos) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment