Skip to content

Commit daf7f37

Browse files
authored
Update index.jsx
1 parent 8748719 commit daf7f37

File tree

1 file changed

+1
-0
lines changed
  • src/components/patterns/HookReducer/exercise

1 file changed

+1
-0
lines changed

src/components/patterns/HookReducer/exercise/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from "react";
22

3+
// Using a reducer helps separate reads, from writes
34
function reducer(state, action) {
45
switch (action.type) {
56
// TODO add a SET_ERRORS case that adds an erros key to the state with the action.payload

0 commit comments

Comments
 (0)