mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
Fix useReducer example (#1992)
This commit is contained in:
committed by
Alexey Pyltsyn
parent
c8703314dd
commit
d2d2ee420d
@@ -226,7 +226,7 @@ function reducer(state, action) {
|
||||
}
|
||||
}
|
||||
|
||||
function Counter({initialState}) {
|
||||
function Counter() {
|
||||
const [state, dispatch] = useReducer(reducer, initialState);
|
||||
return (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user