More Related Content
Similar to Discover React (20)
More from Massimo Iacolare (7)
Discover React
- 45. let’s talk about jsx
expressions - events - styles
jsx looks like an abomination
- 51. immutable can’t touch it
makes tracking
down bugs easier
very easy to
reason about
props
passed from parent
this.props to read
stateless component
- 53. How data flows
props passed
from parent
pass callbacks to
setup a simple
communication
mechanism
- 58. How data flows
state can
become props
state is private
by default
data flows down
callbacks flow up
- 80. render return virtual dom…
…an in-memory, lightweight
representation of the DOM
react is write-only to the DOM
VDOM facts
- 90. 1. everything is a component
Recap
3. think in state, DOM will
follow
4. virtual dom is awesome
2. how data flows