const React = require('react'); const Select = require('react-select'); const Search = React.createClass({ getInitialState: function() { return { selectValue: '' } }, updateValue: function(newValue) { console.log('State changed to ' + newValue); this.setState({ selectValue: newValue }); }, render: function () { var options = [ { value: 'one', label: 'One' }, { value: 'two', label: 'Two' }, { value: 'three', label: 'Three' }, { value: 'four', label: 'Four' }, { value: 'five', label: 'Five' }, { value: 'six', label: 'Six' }, ]; return (