Created
June 23, 2019 22:27
-
-
Save jsmanifest/60514ca120d56b317b92a89bd6a7a55c 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
import { useReducer } from 'react' | |
// ... further down inside the custom hook: | |
const [state, dispatch] = useReducer(reducer, initialState) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment