Skip to content

Instantly share code, notes, and snippets.

@nightspirit
Created Feb 16, 2019
Embed
What would you like to do?
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