Guest User

Untitled

a guest
Jan 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. let options = []
  2.  
  3. const { selectedOption } = this.state;
  4.  
  5. this.state.optionValue.map((value, i) => {
  6. return(
  7. options.push(
  8. this.setState({value: value.name, label: value.desc})
  9. )
  10. );
  11.  
  12. })
Add Comment
Please, Sign In to add comment