Created
December 2, 2021 17:19
-
-
Save SmolinPavel/8157f3ed779dfcee6d42b7d78d221cbb to your computer and use it in GitHub Desktop.
Select
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// &:invalid {} | |
<div> | |
<select required> | |
<option value="" disabled selected> | |
Select items... | |
</option> | |
{options.map(({ value, label }) => ( | |
<option key={value} value={value}> | |
{label} | |
</option> | |
))} | |
</select> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment