Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public render(){
  2. ...
  3. <MyChildComponent
  4. optionsA={this.props.OptionsA} //give some properties to your Component
  5. optionsSelected={this.optionsSelected.bind(this)} //give a CallBack
  6. />
  7. ...
  8. }
  9.  
  10. ...
  11.  
  12. private optionsSelected(selection){
  13. // DO SOMETHING
  14. }
  15. ...
  16.  
  17. public render() {
  18. ...
  19. <myChildDropDown
  20. onChanged={(event) => this.props.optionsSelected(event)}
  21. />
  22. ...
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement