Skip to content

Commit d2d2ee4

Browse files
amast09lex111
authored andcommitted
Fix useReducer example (#1992)
1 parent c870331 commit d2d2ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/hooks-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function reducer(state, action) {
226226
}
227227
}
228228

229-
function Counter({initialState}) {
229+
function Counter() {
230230
const [state, dispatch] = useReducer(reducer, initialState);
231231
return (
232232
<>

0 commit comments

Comments
 (0)