Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <Select
  2. onChange={this.getSelectedOption}
  3. onFocus={this.getData}
  4. options={options}
  5. value={selectedOption}
  6. styles={customStyles}
  7. placeholder="Select...."
  8. />
  9.  
  10. getAvailableDisplays() {
  11. this.props.getData(); /// redux action dispatch
  12. if (this.props.data.items) {
  13. this.setState({ this.state.options: this.props.data.items }); }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement