Created
September 8, 2019 03:35
-
-
Save merictaze/d7124feaf7d8f8f6ab8975c865cd9aed 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
const SelectInput = props => ( | |
<select {...extractInputProps(props)}> | |
<option value="">Select a value</option> | |
{props.options.map(o => | |
<option key={o.value} value={o.value}>{o.label || o.value}</option>)} | |
</select> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment