Guest User

Untitled

a guest
Nov 21st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. <div className="box" onClick={this.clickBox}></div>
  2.  
  3. clickBox() {
  4. alert('hello');
  5. }
  6. and have bound it with
  7.  
  8. this.clickBox = this.clickBox.bind(this);
Add Comment
Please, Sign In to add comment