Skip to content

Conversation

@grepsuzette
Copy link
Contributor

https://reactjs.org/docs/forms.html#the-select-tag

React will show a warning if using

@grepsuzette
Copy link
Contributor Author

grepsuzette commented Jan 23, 2022

Hold on, the above works but according to the doc an Array is ok too:

You can pass an array into the value attribute, allowing you to select multiple options in a select tag:
<select multiple={true} value={['B', 'C']}>

I am unsure how to type that. If any suggestion...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant