Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit daf7f37

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /