There was an error while loading. Please reload this page.
1 parent 0cbaf5e commit 353311eCopy full SHA for 353311e
docs/example-react-hooks-useReducer.md
@@ -28,7 +28,7 @@ function reducer(state = initialState, action) {
28
}
29
30
const Example = () => {
31
- const [reducerState, dispatch] = useReducer(Reducer, initialState)
+ const [state, dispatch] = useReducer(reducer, initialState)
32
33
const dispatchActionSuccess = () => {
34
dispatch({ type: 'SUCCESS' })
0 commit comments