Update useReducer.md
This commit is contained in:
parent
4a0fc54e04
commit
2180ce6130
1 changed files with 0 additions and 2 deletions
|
@ -86,7 +86,6 @@ function reducer(state, action) {
|
||||||
default:
|
default:
|
||||||
throw new Error();
|
throw new Error();
|
||||||
}
|
}
|
||||||
return newState;
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -115,6 +114,5 @@ function reducer(state, action) {
|
||||||
default:
|
default:
|
||||||
throw new Error();
|
throw new Error();
|
||||||
}
|
}
|
||||||
return newState;
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue