1var Select = require('react-select');
2
3var options = [
4 { value: 'one', label: 'One' },
5 { value: 'two', label: 'Two' }
6];
7
8function logChange(val) {
9 console.log("Selected: " + JSON.stringify(val));
10}
11
12<Select
13 name="form-field-name"
14 value="one"
15 options={options}
16 onChange={logChange}
17/>