Skip to content

Instantly share code, notes, and snippets.

@chewmanfoo
Created December 30, 2015 21:08
Show Gist options
  • Select an option

  • Save chewmanfoo/d00b9031858d93208420 to your computer and use it in GitHub Desktop.

Select an option

Save chewmanfoo/d00b9031858d93208420 to your computer and use it in GitHub Desktop.
trying react.dom.select
business_units = [
{
label: 'Management',
value: 'mgmt',
selected: true
},
{
label: 'Development',
value: 'dev',
selected: false
}]
React.DOM.div
className: 'form-group'
React.DOM.select
className: 'form-control'
name: 'business_unit'
value: @state.business_unit
options: business_units
onChange: @handleChange
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment