Skip to content

Commit 1e993ee

Browse files
authored
Update intermediate-tutorial.md (#353)
1 parent ec0d752 commit 1e993ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/intermediate-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export default todos
146146
We can see that it handles three cases:
147147

148148
- It adds a new todo by copying the existing `state` array and adding a new todo entry at the end
149-
- It handles toggling a todo entry by copying the existing array use `state.map()`, copies and replaces the todo object that needs to be updated, and leaves all other todo entries alone.
149+
- It handles toggling a todo entry by copying the existing array using `state.map()`, copies and replaces the todo object that needs to be updated, and leaves all other todo entries alone.
150150
- It responds to all other actions by returning the existing state (effectively saying "I don't care about that action").
151151

152152
It also initializes the state with a default value of `[]`, and does a default export of the reducer function.

0 commit comments

Comments
 (0)