mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-27 03:08:06 +00:00
Remove redundant suggestion (#6643)
Removed the redundant alternative state management suggestion. The documentation already emphasizes the elimination of duplication by advising to hold the selected ID in state, making the alternative suggestion unnecessary.
This commit is contained in:
@@ -554,8 +554,6 @@ button { margin-top: 10px; }
|
||||
|
||||
</Sandpack>
|
||||
|
||||
(Alternatively, you may hold the selected index in state.)
|
||||
|
||||
The state used to be duplicated like this:
|
||||
|
||||
* `items = [{ id: 0, title: 'pretzels'}, ...]`
|
||||
|
||||
Reference in New Issue
Block a user