SlideShare a Scribd company logo
React: A Sneak Peak
Jai Santhosh
UI Engineer @ Flipkart
@jaisanth
Meet React.
Not yet another JS framework!
Meet React.
But just a library for creating user
interfaces.
Meet React.
Renders your UI and responds to
events.
Meet React.
a.k.a. The “V” in

MVC
Build components,
not templates
Build components,
not templates
Re-render, don’t mutate
Build components,
not templates
Re-render, don’t mutate
Fast Virtual DOM
Build components, not templates

• Combine DOM generation and display logic.

9
Build components, not templates

• Combine DOM generation and display logic.

• Transform data into interface components.

10
Build components, not templates

• Combine DOM generation and display logic.

• Transform data into interface components.

• Data can come from anywhere.

11
Build components, not templates

12
Build components, not templates

13
JSX
Allows you to write JS & XML
JSX
Allows you to write JS & XML
Together!
JSX
Don’t need to use it as such
JSX
React.DOM.div({}, 'Hello ' + this.props.name)
Re-render, don’t mutate!

• Every component has “state” and “props”.

18
Re-render, don’t mutate!

• Every component has “state” and “props”.

• Acts as an “Immutable DOM”.

19
Re-render, don’t mutate!

• Every component has “state” and “props”.

• Acts as an “Immutable DOM”.

• Re-render the whole app once the state changes.

20
Re-render, don’t mutate!

Data is guaranteed
to update!

21
Re-render, don’t mutate!

Just like the 90’s
Full-page refresh!!

22
React js
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
• …diffs it with the old one

26
Fast Virtual DOM

On every update…
• React builds a new virtual DOM subtree
• …diffs it with the old one
• …computes the minimal set of DOM
mutations and puts them in a queue

27
Fast Virtual DOM

On every update…
• React builds a new virtual DOM subtree
• …diffs it with the old one
• …computes the minimal set of DOM
mutations and puts them in a queue
• …and batch exexutes all updates
28
Fast Virtual DOM

none to first
• Create Node:
<div
className="first"><span>A Span</span></div>

first to second

• Replace attribute:
className=“second"

className=“first" by

• Replace node:
Span</span> by <p>A Paragraph</p>

<span>A

second to none
• Remove Node:
<div
className="second"><p>A Paragraph</p></div>
29
Fast Virtual DOM

Virtual DOM is simple and fast

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!!

More Related Content

PPTX
Introduction to React JS for beginners
PDF
React JS - Introduction
PDF
ReactJS presentation
PPTX
Introduction to react_js
PPTX
Its time to React.js
PPTX
[Final] ReactJS presentation
PPTX
React workshop
PPTX
Reactjs
Introduction to React JS for beginners
React JS - Introduction
ReactJS presentation
Introduction to react_js
Its time to React.js
[Final] ReactJS presentation
React workshop
Reactjs

What's hot (20)

PPTX
React js programming concept
PDF
Introduction to ReactJS
PPTX
Intro to React
PPTX
PPTX
React state
PPTX
Introduction to React
PPTX
React hooks
PDF
React Context API
PDF
React js
PPTX
React JS: A Secret Preview
PPTX
React js - The Core Concepts
PPTX
ReactJS presentation.pptx
PPTX
Introduction to Facebook React
PPTX
Introduction to react js
PPTX
reactJS
PDF
React JS and why it's awesome
ODP
Introduction to ReactJS
PDF
An introduction to React.js
PDF
Understanding react hooks
PPTX
React js
React js programming concept
Introduction to ReactJS
Intro to React
React state
Introduction to React
React hooks
React Context API
React js
React JS: A Secret Preview
React js - The Core Concepts
ReactJS presentation.pptx
Introduction to Facebook React
Introduction to react js
reactJS
React JS and why it's awesome
Introduction to ReactJS
An introduction to React.js
Understanding react hooks
React js
Ad

Viewers also liked (6)

PDF
An Introduction to ReactJS
PDF
SpringPeople Introduction to Spring Framework
PDF
Introduction To Spring Enterprise Integration - SpringPeople
PDF
Introduction To Angular.js - SpringPeople
PPTX
React + Redux Introduction
PDF
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
An Introduction to ReactJS
SpringPeople Introduction to Spring Framework
Introduction To Spring Enterprise Integration - SpringPeople
Introduction To Angular.js - SpringPeople
React + Redux Introduction
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
Ad

Similar to React js (20)

PPTX
Rethinking Best Practices
PDF
React && React Native workshop
PPTX
What is virtual dom in react js
PPTX
ReactJS.NET - Fast and Scalable Single Page Applications
PDF
All the reasons for choosing react js that you didn't know about - Avi Marcus...
PDF
Reactjs workshop (1)
PPTX
ReactJS Code Impact
PDF
React Tech Salon
PDF
Welcome to React & Flux !
PPTX
Reactjs workshop
PPTX
ReactJS - Re-rendering pages in the age of the mutable DOM
PDF
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
PDF
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
PDF
React.js - and how it changed our thinking about UI
PDF
Performance and Scalability Art of Isomorphic React Applications
PPTX
Reactjs notes.pptx for web development- tutorial and theory
PDF
Web Development with Delphi and React - ITDevCon 2016
PDF
Virtual Dom|Browser DOM What are these in React Js?
PDF
Incremental DOM and Recent Trend of Frontend Development
PDF
React DOM/Virtual DOM
Rethinking Best Practices
React && React Native workshop
What is virtual dom in react js
ReactJS.NET - Fast and Scalable Single Page Applications
All the reasons for choosing react js that you didn't know about - Avi Marcus...
Reactjs workshop (1)
ReactJS Code Impact
React Tech Salon
Welcome to React & Flux !
Reactjs workshop
ReactJS - Re-rendering pages in the age of the mutable DOM
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
React.js - and how it changed our thinking about UI
Performance and Scalability Art of Isomorphic React Applications
Reactjs notes.pptx for web development- tutorial and theory
Web Development with Delphi and React - ITDevCon 2016
Virtual Dom|Browser DOM What are these in React Js?
Incremental DOM and Recent Trend of Frontend Development
React DOM/Virtual DOM

More from Jai Santhosh (6)

PPTX
Context with Yahoo! BOSS
PPTX
BOSS around the web
PPTX
YUI Tidbits
PPTX
YUI (Advanced)
PPTX
YQL & Yahoo! Apis
PPT
Hack with YUI
Context with Yahoo! BOSS
BOSS around the web
YUI Tidbits
YUI (Advanced)
YQL & Yahoo! Apis
Hack with YUI

Recently uploaded (20)

PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PDF
Top Generative AI Tools for Patent Drafting in 2025.pdf
PDF
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
PDF
Event Presentation Google Cloud Next Extended 2025
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Reimagining Insurance: Connected Data for Confident Decisions.pdf
PDF
How AI Agents Improve Data Accuracy and Consistency in Due Diligence.pdf
PDF
ai-archetype-understanding-the-personality-of-agentic-ai.pdf
PPTX
ABU RAUP TUGAS TIK kelas 8 hjhgjhgg.pptx
PDF
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
PPTX
Web Security: Login Bypass, SQLi, CSRF & XSS.pptx
PDF
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PPTX
How to Build Crypto Derivative Exchanges from Scratch.pptx
PDF
Sensors and Actuators in IoT Systems using pdf
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
PDF
KodekX | Application Modernization Development
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
Top Generative AI Tools for Patent Drafting in 2025.pdf
CIFDAQ's Market Wrap: Ethereum Leads, Bitcoin Lags, Institutions Shift
Event Presentation Google Cloud Next Extended 2025
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Chapter 3 Spatial Domain Image Processing.pdf
Reimagining Insurance: Connected Data for Confident Decisions.pdf
How AI Agents Improve Data Accuracy and Consistency in Due Diligence.pdf
ai-archetype-understanding-the-personality-of-agentic-ai.pdf
ABU RAUP TUGAS TIK kelas 8 hjhgjhgg.pptx
CIFDAQ's Teaching Thursday: Moving Averages Made Simple
Web Security: Login Bypass, SQLi, CSRF & XSS.pptx
Building High-Performance Oracle Teams: Strategic Staffing for Database Manag...
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
How to Build Crypto Derivative Exchanges from Scratch.pptx
Sensors and Actuators in IoT Systems using pdf
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
KodekX | Application Modernization Development

React js

Editor's Notes

  • #2: No fb
  • #7: Or: mixing markup and display logic
  • #8: Or: mixing markup and display logic
  • #9: Or: mixing markup and display logic
  • #24: ----- Meeting Notes (9/9/13 12:00) ----- nowhere in this example is the dom node for count explicitly updated