We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8748719 commit daf7f37Copy full SHA for daf7f37
src/components/patterns/HookReducer/exercise/index.jsx
@@ -1,5 +1,6 @@
1
import React from "react";
2
3
+// Using a reducer helps separate reads, from writes
4
function reducer(state, action) {
5
switch (action.type) {
6
// TODO add a SET_ERRORS case that adds an erros key to the state with the action.payload
0 commit comments