Skip to content

Instantly share code, notes, and snippets.

@merictaze
Created September 8, 2019 03:35
Embed
What would you like to do?
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