Skip to content

Instantly share code, notes, and snippets.

@mcjcloud
Created July 10, 2020 06:47
Show Gist options
  • Save mcjcloud/7bdf713a3715692cfab9ca080548f1f5 to your computer and use it in GitHub Desktop.
Save mcjcloud/7bdf713a3715692cfab9ca080548f1f5 to your computer and use it in GitHub Desktop.
Asterisk Medium Article: useEffect
useEffect(() => {
dispatch(fetchTodos())
}, [])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment