Skip to content

Commit 353311e

Browse files
iqbal125alexkrolick
andauthored
Update docs/example-react-hooks-useReducer.md
Co-Authored-By: Alex Krolick <alexkrolick@users.noreply.github.com>
1 parent 0cbaf5e commit 353311e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/example-react-hooks-useReducer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function reducer(state = initialState, action) {
2828
}
2929

3030
const Example = () => {
31-
const [reducerState, dispatch] = useReducer(Reducer, initialState)
31+
const [state, dispatch] = useReducer(reducer, initialState)
3232

3333
const dispatchActionSuccess = () => {
3434
dispatch({ type: 'SUCCESS' })

0 commit comments

Comments
 (0)