Skip to content

Instantly share code, notes, and snippets.

@SmolinPavel
Created December 2, 2021 17:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SmolinPavel/8157f3ed779dfcee6d42b7d78d221cbb to your computer and use it in GitHub Desktop.
Save SmolinPavel/8157f3ed779dfcee6d42b7d78d221cbb to your computer and use it in GitHub Desktop.
Select
// &: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