Skip to content

Commit db132ed

Browse files
authored
Update README.md
1 parent 654be8e commit db132ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ class FooItems {
201201
}
202202

203203
const fooBar = new FooItems()
204-
fooBar.addToFoo("bop")
204+
fooBar.addItem("bop")
205205
```
206206

207207
Now when the `addItem` method is called, `dispatch` will tell your store to begin the state update process. Your reducer receives the action type and payload.
208208

209-
The next step being that your reducer could have a logic branch on the action type called `ADD_FOO_ITEM` which adds the given item to state, then returns the resulting new state.
209+
The next step being that your reducer could have a logic branch on the action type called `ADD_ITEM` which adds the given item to state, then returns the resulting new state.
210210

211211
Finally, the result would then be handed over to `bindState`.
212212

0 commit comments

Comments
 (0)