mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
docs: phrasing a sentence (#4182)
* docs: phrasing a sentence * Update extracting-state-logic-into-a-reducer.md Co-authored-by: dan <dan.abramov@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ Components with many state updates spread across many event handlers can get ove
|
||||
|
||||
## Consolidate state logic with a reducer {/*consolidate-state-logic-with-a-reducer*/}
|
||||
|
||||
As your components grow in complexity, it can get harder to see all the different ways that a component's state gets updated at a glance. For example, the `TaskApp` component below holds an array of `tasks` in state and uses three different event handlers to add, remove, and edit tasks:
|
||||
As your components grow in complexity, it can get harder to see at a glance all the different ways in which a component's state gets updated. For example, the `TaskApp` component below holds an array of `tasks` in state and uses three different event handlers to add, remove, and edit tasks:
|
||||
|
||||
<Sandpack>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user