Skip to content

Commit

Permalink
Fix state value in README example
Browse files Browse the repository at this point in the history
Change this.state.value to this.state.selectedOption.value
  • Loading branch information
srishanbhattarai authored Dec 3, 2017
1 parent 75f3043 commit 28bac8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class App extends React.Component {
return (
<Select
name="form-field-name"
value={this.state.value}
value={this.state.selectedOption.value}
onChange={this.handleChange}
options={[
{ value: 'one', label: 'One' },
Expand Down

0 comments on commit 28bac8f

Please sign in to comment.