Fix useReducer example (#1992)

This commit is contained in:
Aaron Mast
2019-05-14 03:10:25 -04:00
committed by Alexey Pyltsyn
parent c8703314dd
commit d2d2ee420d

View File

@@ -226,7 +226,7 @@ function reducer(state, action) {
}
}
function Counter({initialState}) {
function Counter() {
const [state, dispatch] = useReducer(reducer, initialState);
return (
<>