SlideShare a Scribd company logo
React.js
How the webapplications are/were created
Server side templates + jquery
Client side templates + MVC libraries
React.js solves all these
problems with Virtual DOM
Real DOM - simplified
Virtual DOM - simplified
Virtual DOM
OldNew
Result on real DOM
Hello World
Hello World
JSX
Optional
Recommended for faster, easier development
Noninvasive transformer
HelloWorld transformed
Component properties
Component properties validation
Changing data
Just rerender the whole application
… or at least big part of it
Changing data
Changing data
Component state
Props vs State
Props
External data
Can’t change it
State
Internal data
Can change it
Private for component
Lifecycle callbacks
„componentWillMount”
„componentDidMount”
„componentWillReceiveProps”
„shouldComponentUpdate”
„componentWillUpdate”
„componentDidUpdate”
„componentWillUnmount”
Events
Form and the state
Form state with mixin
Performance
Always performs only DOM necessary changes
All components are rendered by default
„shouldComponentUpdate” to control whether the
rendering is required
Performance
Performance
Performance
Performance
App > TodoList > TodoItem#2
How to implement „shouldComponentUpdate”?
Mutable data
Immutable data
Immutable data
Changing the data immutable way is hard
Helpers
http://facebook.github.io/react/docs/
update.html
https://github.com/facebook/immutable-js
„shouldComponentUpdate” with immutable data
„shouldComponentUpdate” with mixin
Server side rendering
Debugging
Performance profiler
Questions

More Related Content

PPTX
Reactjs
Neha Sharma
 
PDF
An introduction to React.js
Emanuele DelBono
 
PPTX
Introduction to React JS for beginners
Varun Raj
 
PPTX
Introduction to react js
Aeshan Wijetunge
 
PDF
React js
Rajesh Kolla
 
PPTX
Intro to React
Eric Westfall
 
PPTX
React js Rahil Memon
RahilMemon5
 
PDF
Introduction to react
kiranabburi
 
Reactjs
Neha Sharma
 
An introduction to React.js
Emanuele DelBono
 
Introduction to React JS for beginners
Varun Raj
 
Introduction to react js
Aeshan Wijetunge
 
React js
Rajesh Kolla
 
Intro to React
Eric Westfall
 
React js Rahil Memon
RahilMemon5
 
Introduction to react
kiranabburi
 

What's hot (20)

PPTX
Introduction to React JS
Arnold Asllani
 
PPTX
React JS: A Secret Preview
valuebound
 
PPTX
[Final] ReactJS presentation
洪 鹏发
 
PDF
React and redux
Mystic Coders, LLC
 
PDF
React JS - Introduction
Sergey Romaneko
 
PPTX
A Brief Introduction to React.js
Doug Neiner
 
PPTX
reactJS
Syam Santhosh
 
PPTX
Introduction to React
Rob Quick
 
PDF
Introduction to ReactJS
Hoang Long
 
PPTX
Its time to React.js
Ritesh Mehrotra
 
PPTX
React js
Alireza Akbari
 
PDF
Understanding Facebook's React.js
Federico Torre
 
PPTX
20180518 QNAP Seminar - Introduction to React Native
Eric Deng
 
PDF
Learning React - I
Mitch Chen
 
PPTX
Introduction to React JS for beginners | Namespace IT
namespaceit
 
PPT
React js
Jai Santhosh
 
PPSX
React introduction
Kashyap Parmar
 
PPTX
Introduction to React JS
Lohith Goudagere Nagaraj
 
PPTX
React js programming concept
Tariqul islam
 
PDF
React.js in real world apps.
Emanuele DelBono
 
Introduction to React JS
Arnold Asllani
 
React JS: A Secret Preview
valuebound
 
[Final] ReactJS presentation
洪 鹏发
 
React and redux
Mystic Coders, LLC
 
React JS - Introduction
Sergey Romaneko
 
A Brief Introduction to React.js
Doug Neiner
 
reactJS
Syam Santhosh
 
Introduction to React
Rob Quick
 
Introduction to ReactJS
Hoang Long
 
Its time to React.js
Ritesh Mehrotra
 
React js
Alireza Akbari
 
Understanding Facebook's React.js
Federico Torre
 
20180518 QNAP Seminar - Introduction to React Native
Eric Deng
 
Learning React - I
Mitch Chen
 
Introduction to React JS for beginners | Namespace IT
namespaceit
 
React js
Jai Santhosh
 
React introduction
Kashyap Parmar
 
Introduction to React JS
Lohith Goudagere Nagaraj
 
React js programming concept
Tariqul islam
 
React.js in real world apps.
Emanuele DelBono
 
Ad

Viewers also liked (9)

PDF
React-js
Avi Kedar
 
PDF
React for Dummies
Mitch Chen
 
PDF
An Introduction to ReactJS
All Things Open
 
PPTX
React in Native Apps - Meetup React - 20150409
Minko3D
 
PDF
React JS and why it's awesome
Andrew Hull
 
PDF
Getting Started with React-Nathan Smith
TandemSeven
 
PDF
React.js for Back-End developers
Artyom Trityak
 
PDF
ReactJS presentation
Thanh Tuong
 
PPTX
React + Redux Introduction
Nikolaus Graf
 
React-js
Avi Kedar
 
React for Dummies
Mitch Chen
 
An Introduction to ReactJS
All Things Open
 
React in Native Apps - Meetup React - 20150409
Minko3D
 
React JS and why it's awesome
Andrew Hull
 
Getting Started with React-Nathan Smith
TandemSeven
 
React.js for Back-End developers
Artyom Trityak
 
ReactJS presentation
Thanh Tuong
 
React + Redux Introduction
Nikolaus Graf
 
Ad

Similar to React.js (20)

PDF
2018 02-22 React, Redux & Building Applications that Scale | React
Codifly
 
PPTX
React + Redux + TypeScript === ♥
Remo Jansen
 
PPTX
React, Flux and more (p1)
tuanpa206
 
PPTX
React Workshop: Core concepts of react
Imran Sayed
 
PPTX
React and Flux life cycle with JSX, React Router and Jest Unit Testing
Eswara Kumar Palakollu
 
PPTX
ReactJS
Ram Murat Sharma
 
PDF
Building Testable Reactive Apps with MVI
James Shvarts
 
PDF
React: High level overview for backend developers
Bonnie DiPasquale
 
PPTX
Getting started with react & redux
Girish Talekar
 
PPTX
STATE MANAGEMENT IN REACT [Autosaved].pptx
siddheshjadhav919123
 
PDF
첫 리액트 경험기
석진 고
 
PPTX
Intro react js
Vijayakanth MP
 
PPTX
React workshop
Imran Sayed
 
PPTX
2.React tttttttttttttttttttttttttttttttt
MrVMNair
 
PDF
React state managmenet with Redux
Vedran Blaženka
 
PDF
Introduction to React, Flux, and Isomorphic Apps
Federico Torre
 
PDF
Reduxing UI: Borrowing the Best of Web to Make Android Better
Christina Lee
 
PDF
Workshop 27: Isomorphic web apps with ReactJS
Visual Engineering
 
PPTX
Demystifying frontend framework performance
Vinh Nguyen
 
PPTX
Comparing Angular and React JS for SPAs
Jennifer Estrada
 
2018 02-22 React, Redux & Building Applications that Scale | React
Codifly
 
React + Redux + TypeScript === ♥
Remo Jansen
 
React, Flux and more (p1)
tuanpa206
 
React Workshop: Core concepts of react
Imran Sayed
 
React and Flux life cycle with JSX, React Router and Jest Unit Testing
Eswara Kumar Palakollu
 
Building Testable Reactive Apps with MVI
James Shvarts
 
React: High level overview for backend developers
Bonnie DiPasquale
 
Getting started with react & redux
Girish Talekar
 
STATE MANAGEMENT IN REACT [Autosaved].pptx
siddheshjadhav919123
 
첫 리액트 경험기
석진 고
 
Intro react js
Vijayakanth MP
 
React workshop
Imran Sayed
 
2.React tttttttttttttttttttttttttttttttt
MrVMNair
 
React state managmenet with Redux
Vedran Blaženka
 
Introduction to React, Flux, and Isomorphic Apps
Federico Torre
 
Reduxing UI: Borrowing the Best of Web to Make Android Better
Christina Lee
 
Workshop 27: Isomorphic web apps with ReactJS
Visual Engineering
 
Demystifying frontend framework performance
Vinh Nguyen
 
Comparing Angular and React JS for SPAs
Jennifer Estrada
 

Recently uploaded (20)

PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PPTX
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
PDF
Software Testing Tools - names and explanation
shruti533256
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
PDF
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
PDF
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PDF
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PDF
JUAL EFIX C5 IMU GNSS GEODETIC PERFECT BASE OR ROVER
Budi Minds
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
database slide on modern techniques for optimizing database queries.pptx
aky52024
 
Software Testing Tools - names and explanation
shruti533256
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
Unit I Part II.pdf : Security Fundamentals
Dr. Madhuri Jawale
 
Packaging Tips for Stainless Steel Tubes and Pipes
heavymetalsandtubes
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
JUAL EFIX C5 IMU GNSS GEODETIC PERFECT BASE OR ROVER
Budi Minds
 

React.js