Introduction To React
Introduction To React
Jai Santhosh
UI Engineer @ Flipkart
@jaisanth
Meet React.
9
Build components, not templates
10
Build components, not templates
11
Build components, not templates
12
Build components, not templates
13
JSX
18
Re-render, dont mutate!
19
Re-render, dont mutate!
20
Re-render, dont mutate!
Data is guaranteed
to update!
21
Re-render, dont mutate!
22
Fast Virtual DOM
Virtual DOM
Makes re-rendering on every change fast.
24
Fast Virtual DOM
On every update
React builds a new virtual DOM subtree
25
Fast Virtual DOM
On every update
React builds a new virtual DOM subtree
26
Fast Virtual DOM
On every update
React builds a new virtual DOM subtree
27
Fast Virtual DOM
On every update
React builds a new virtual DOM subtree
first to second
Replace attribute: className=first" by
className=second"
Replace node: <span>A
Span</span> by <p>A Paragraph</p>
second to none
Remove Node: <div
className="second"><p>A Paragraph</p></div>
29
Fast Virtual DOM
30
http://reactjs.org/
#reactjs on Freenode IRC
reactjs on Google Groups
Other helpful links:
http://swannodette.github.io/2013/12/17/the-future-of-javascript-mvcs/
https://news.ycombinator.com/item?id=6936975
https://news.ycombinator.com/item?id=6937921
http://calendar.perfplanet.com/2013/diff/
Thank You!!