Replies: 1 comment
-
Hey! Thank you for your suggestion! Ideally you want a unique value so that the identity of a certain object is clear. Objects in our examples are unique and can be used as a value. So |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Heya, I was just wondering about the Option for the listbox,
<Listbox.Options static> {people.map((person) => ( <Listbox.Option key={person.id} value={person}> {person.name} </Listbox.Option> ))} </Listbox.Options>
is there any reason as to why the listbox.option is using the object as a value, and not {person.name}? :)
Beta Was this translation helpful? Give feedback.
All reactions