Update useReducer.md

This commit is contained in:
Thomas Bishop 2022-09-01 18:42:11 +01:00 committed by GitHub
parent 4a0fc54e04
commit 2180ce6130

View file

@ -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;
} }
``` ```