title: React: saving selected options into state
body: <p>I am trying to save the selected options of my select box in state. I get an error when selecting something in my the box... It looks like "event" is not defined, which I don't see a reason why this should be the case.</p>
  
  <pre><code>import React, { Component } from 'react'
  import Select from 'react-select'
  
  class SwitchList extends React.Component{
    constructor(){ 
      super()
      this.state = {
        switches: [],
        selectedOption: []
      }
    }
    handleChange(event){
      this.setState({selectedOption: event.target.value })
    }
    render() {
      return(
        &lt;Select
          value={this.state.selectedOption}
          options={this.state.switches}
          onChange={this.handleChange}
        /&gt;
      )
    }
  }
  &gt; Uncaught TypeError: Cannot read property 'value' of undefined
  </code></pre>