Created
June 21, 2021 19:48
-
-
Save hboylan/beff84bf6f6e4c3ead397c89641e8a03 to your computer and use it in GitHub Desktop.
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
// Custom options prop adds unnecessary complexity | |
<Select | |
options={[ | |
{ | |
title: 'One', | |
value: 'one', | |
}, | |
{ | |
title: 'Two', | |
value: 'two', | |
}, | |
{ | |
title: 'Three', | |
value: 'three', | |
}, | |
]} | |
value="one" | |
/> | |
// Instead, just rely on standard options | |
<Select value="one"> | |
<option value="one">One</option> | |
<option value="two">Two</option> | |
<option value="three">Three</option> | |
</Select> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment