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:
Tomasz Wysocki
2024-02-21 16:02:51 +01:00
committed by GitHub
parent 5398b47260
commit 93aec2784b

View File

@@ -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'}, ...]`