Skip to content

Instantly share code, notes, and snippets.

@merictaze
Created September 8, 2019 03:35
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 merictaze/d7124feaf7d8f8f6ab8975c865cd9aed to your computer and use it in GitHub Desktop.
Save merictaze/d7124feaf7d8f8f6ab8975c865cd9aed to your computer and use it in GitHub Desktop.
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