Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
export default React.createClass({
propTypes: {
sizes: React.PropTypes.array
},
render() {
return (
<select>
{..this.props}
{
this.props.sizes.map( (sizeItem) => {
return (
<option key={sizeItem.id} value={sizeItem.id}>{sizeItem.text}</option>
);
})
}
</select>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment