Skip to content

Commit d3b76a7

Browse files
committed
Fix Second Code Example in README
The second code example was missing a `useReducer` call.
1 parent 165e911 commit d3b76a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function reducer(state, action) {
3434
}
3535
}
3636

37-
const [state, dispatch] = (
37+
const [state, dispatch] = useReducer(
3838
process.env.NODE_ENV === 'development' ? logger(reducer) : reducer,
3939
initialState
4040
);

0 commit comments

Comments
 (0)