Created
February 16, 2019 09:08
-
-
Save nightspirit/502bb3231c59c20c4439490691c13c34 to your computer and use it in GitHub Desktop.
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
import useAppReducer from 'Hooks/useAppReducer' | |
export default function Foo () { | |
const [state, dispatch] = useAppReducer() | |
// can read state or dispatch action to appReducer | |
return ( | |
... | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment