Skip to content

Instantly share code, notes, and snippets.

@nightspirit
Created February 16, 2019 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nightspirit/502bb3231c59c20c4439490691c13c34 to your computer and use it in GitHub Desktop.
Save nightspirit/502bb3231c59c20c4439490691c13c34 to your computer and use it in GitHub Desktop.
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