Skip to content

Commit

Permalink
fix: a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hanyujie2002 authored Nov 3, 2024
1 parent c5d91e2 commit 582ec35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/learn/extracting-state-logic-into-a-reducer.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function tasksReducer(tasks, action) {
}
```

由于 `reducer` 函数接受 `state`tasks)作为参数,因此你可以 **在组件之外声明它**。这减少了代码的缩进级别,提升了代码的可读性。
由于 `reducer` 函数接受 state`tasks`)作为参数,因此你可以 **在组件之外声明它**。这减少了代码的缩进级别,提升了代码的可读性。

<Note>

Expand Down

0 comments on commit 582ec35

Please sign in to comment.