Skip to content

Commit 93aec27

Browse files
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.
1 parent 5398b47 commit 93aec27

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/content/learn/choosing-the-state-structure.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,6 @@ button { margin-top: 10px; }
554554

555555
</Sandpack>
556556

557-
(Alternatively, you may hold the selected index in state.)
558-
559557
The state used to be duplicated like this:
560558

561559
* `items = [{ id: 0, title: 'pretzels'}, ...]`

0 commit comments

Comments
 (0)