Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import useAppReducer from 'Hooks/useAppReducer'
- export default function Foo () {
- const [state, dispatch] = useAppReducer()
- // can read state or dispatch action to appReducer
- return (
- ...
- )
- }
Add Comment
Please, Sign In to add comment