/ittf/models/cheatsheets/jsx/t/events.ittf.ittf (primary)
edit
1 element react
2 tag _
3 ast
4 category react
5 item
6 title class
7 ittf
8 react MyComponent
9 render
10 return
11 div
12 @ onClick
13 =>
14 _ this.handleClose()
15 h1 Hello world
16 item
17 title var
18 ittf
19 var Hello
20 div
21 p sicut amet nequi abisse
22 item
23 title full component
24 ittf
25 react MyComponent
26 state
27 @ open false
28 did-mount
29 _ window.addEventListener('scroll', this.handlePaperScroll)
30 will-unmount
31 _ window.removeEventListener('scroll', this.handlePaperScroll)
32 render
33 prop jsonData
34 const
35 {
36 @ open
37 = this.state