Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Select
- onChange={this.getSelectedOption}
- onFocus={this.getData}
- options={options}
- value={selectedOption}
- styles={customStyles}
- placeholder="Select...."
- />
- getAvailableDisplays() {
- this.props.getData(); /// redux action dispatch
- if (this.props.data.items) {
- this.setState({ this.state.options: this.props.data.items }); }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement