SlideShare a Scribd company logo
9
Most read
12
Most read
16
Most read
Noorul Ameen
Its time to React.js
© TechTalks, 2017
 Hello World
 React fundamentals – What is happening behind the scenes
 Live Coding – Building “Stock Price Viewer”
 Q & A
Agenda
© TechTalks, 2017
 React is declarative, efficient and flexible JavaScript library for building user interfaces.
 React was created by Jordan Walke from Facebook. Originally used in newsfeed and
then in Instagram.com
 Open Sourced in May 2013.
 Highest number of stars(57,773) in “Github Front-end JavaScript
frameworks” followed by Angular.
 Some of the big names using react are NETFLIX, PAYPAL, AIRBNB, UBER, KHAN
ACADEMY…. (Source libscore.com)
React Intro
© TechTalks, 2017
Without React.js
Hello World!
© TechTalks, 2017
What browser does behind the scenes
JS
HTML
CSS
DOM
(Tree)
Render
Tree
Web Page
Style
Rules
© TechTalks, 2017
 DOM and JavaScript are different
 Accessing DOM from JavaScript is slow
 Too many DOM updates may slow down your app
Things to note
© TechTalks, 2017
The React.js way
Hello World!
© TechTalks, 2017
Behind the scene
JS
HTML
CSS
DOM
(Tree)
Render
Tree
Web
Page
Style
Rules
React
Components
Virtual
DOM
© TechTalks, 2017
Virtual DOM Comparison
DOM
(Tree)
React
Components
(Initial Load)
Virtual
DOM
Version 1
DOM
(Tree)
React
Components
(Page Updates)
Virtual
DOM
Version 2
Diff of
V1 & V2
© TechTalks, 2017
 Build Reusable Components (Not templates)
 Reactive Updates (React auto updates UI when data changes.)
 Performance (Virtual DOM)
 Testability
Why React?
© TechTalks, 2017
Reduce Coupling and Increase Cohesion
 Coupling:
Coupling is the degree of interdependence between software
modules.
 Cohesion:
Cohesion refers to the degree to which the elements of
a module belong together. Thus, cohesion measures the strength
of relationship between pieces of functionality within a given
module.
Build Reusable Components, Not templates
© TechTalks, 2017
 React Components follows
“Reduce Coupling, increase Cohesion”.
 React Components encapsulates
 Data
 View
 Logic
 Component can contain other
child components.
React Components
© TechTalks, 2017
 When data changes, react auto updates UI in the most efficient and
performant way.
 React supports one way data flow instead of two way binding.
 When state changes, react re-renders the component. Also does a diff of
current render with previous render and applies only the minimal set of
changes to actual DOM.
Reactive Updates
© TechTalks, 2017
 React creates Virtual DOM by rendering component and it is children.
 It is a JavaScript object unlike real DOM.
 Working with VDOM is faster than actual DOM
 React patches the updates from VDOM to real DOM.
Virtual DOM
© TechTalks, 2017
 React forces us to build everything as components.
 Components are easy to unit test
Testability
© TechTalks, 2017
 https://github.com/jnoorul/tech-talk-stock-viewer
Live Coding – Stock Price Viewer
© TechTalks, 2017
Way forward – React Native (Cross Platform Mobile
Apps)
© TechTalks, 2017
 React official site https://facebook.github.io/react/
 Why React? https://facebook.github.io/react/blog/2013/06/05/why-react.html
 NETFLIX- Crafting a high performance TV user interface using React
http://techblog.netflix.com/2017/01/crafting-high-performance-tv-user.html
 Source Code https://github.com/jnoorul/tech-talk-stock-viewer
For further info
© TechTalks, 2017
THANK YOU
© TechTalks, 2017

More Related Content

What's hot (20)

PDF
React js
Rajesh Kolla
 
PDF
An introduction to React.js
Emanuele DelBono
 
PPTX
Introduction to React JS
Arnold Asllani
 
PPTX
Intro to React
Justin Reock
 
PDF
React JS - Introduction
Sergey Romaneko
 
PPT
React js
Jai Santhosh
 
PPTX
Intro to React
Eric Westfall
 
PPTX
Reactjs
Neha Sharma
 
PPTX
React workshop
Imran Sayed
 
PPTX
React + Redux Introduction
Nikolaus Graf
 
PPTX
Introduction to React
Rob Quick
 
PPTX
React js
Alireza Akbari
 
PPTX
React js
Oswald Campesato
 
PPTX
React js for beginners
Alessandro Valenti
 
PDF
An Introduction to Redux
NexThoughts Technologies
 
PPTX
React js - The Core Concepts
Divyang Bhambhani
 
PPTX
Redux workshop
Imran Sayed
 
PPTX
ReactJS presentation.pptx
DivyanshGupta922023
 
PDF
An Introduction to ReactJS
All Things Open
 
React js
Rajesh Kolla
 
An introduction to React.js
Emanuele DelBono
 
Introduction to React JS
Arnold Asllani
 
Intro to React
Justin Reock
 
React JS - Introduction
Sergey Romaneko
 
React js
Jai Santhosh
 
Intro to React
Eric Westfall
 
Reactjs
Neha Sharma
 
React workshop
Imran Sayed
 
React + Redux Introduction
Nikolaus Graf
 
Introduction to React
Rob Quick
 
React js
Alireza Akbari
 
React js for beginners
Alessandro Valenti
 
An Introduction to Redux
NexThoughts Technologies
 
React js - The Core Concepts
Divyang Bhambhani
 
Redux workshop
Imran Sayed
 
ReactJS presentation.pptx
DivyanshGupta922023
 
An Introduction to ReactJS
All Things Open
 

Similar to Its time to React.js (20)

PDF
Learning React - I
Mitch Chen
 
PPTX
React_Complete.pptx
kamalakantas
 
PPTX
Reactjs notes.pptx for web development- tutorial and theory
jobinThomas54
 
PDF
Getting Started with React, When You’re an Angular Developer
Fabrit Global
 
PPTX
React js
Nikhil Karkra
 
PDF
Tech Talk on ReactJS
Atlogys Technical Consulting
 
PPTX
Introduction to React JS.pptx
SHAIKIRFAN715544
 
PPTX
React ppt
Naresh Thamizharasan
 
PPTX
Introduction to ReactJS UI Web Dev .pptx
SHAIKIRFAN715544
 
PDF
What is React programming used for_ .pdf
ayushinwizards
 
PPSX
REACTJS1.ppsx
IshwarSingh501217
 
PPTX
React
manii kanta
 
PDF
React - The JavaScript Library for User Interfaces
Jumping Bean
 
PDF
React DOM/Virtual DOM
RajasreePothula3
 
PPTX
Rethinking Best Practices
floydophone
 
PPTX
Software Development: Mastering React.js and JavaScript.pptx
Atappisoft
 
PDF
learning react
Eueung Mulyana
 
PDF
Introduction to React JS
Bethmi Gunasekara
 
PDF
React Fundamentals - Jakarta JS, Apr 2016
Simon Sturmer
 
PDF
Review on React JS
ijtsrd
 
Learning React - I
Mitch Chen
 
React_Complete.pptx
kamalakantas
 
Reactjs notes.pptx for web development- tutorial and theory
jobinThomas54
 
Getting Started with React, When You’re an Angular Developer
Fabrit Global
 
React js
Nikhil Karkra
 
Tech Talk on ReactJS
Atlogys Technical Consulting
 
Introduction to React JS.pptx
SHAIKIRFAN715544
 
Introduction to ReactJS UI Web Dev .pptx
SHAIKIRFAN715544
 
What is React programming used for_ .pdf
ayushinwizards
 
REACTJS1.ppsx
IshwarSingh501217
 
React - The JavaScript Library for User Interfaces
Jumping Bean
 
React DOM/Virtual DOM
RajasreePothula3
 
Rethinking Best Practices
floydophone
 
Software Development: Mastering React.js and JavaScript.pptx
Atappisoft
 
learning react
Eueung Mulyana
 
Introduction to React JS
Bethmi Gunasekara
 
React Fundamentals - Jakarta JS, Apr 2016
Simon Sturmer
 
Review on React JS
ijtsrd
 
Ad

More from Ritesh Mehrotra (6)

PDF
Unit Testing and role of Test doubles
Ritesh Mehrotra
 
PPTX
Progressive Web Applications - A gentle introduction
Ritesh Mehrotra
 
PPTX
A journey from Vision to product
Ritesh Mehrotra
 
PPTX
Behavior driven development
Ritesh Mehrotra
 
PPTX
Elaborating Scrum Values
Ritesh Mehrotra
 
PPTX
The curious case of Blockchain Technology
Ritesh Mehrotra
 
Unit Testing and role of Test doubles
Ritesh Mehrotra
 
Progressive Web Applications - A gentle introduction
Ritesh Mehrotra
 
A journey from Vision to product
Ritesh Mehrotra
 
Behavior driven development
Ritesh Mehrotra
 
Elaborating Scrum Values
Ritesh Mehrotra
 
The curious case of Blockchain Technology
Ritesh Mehrotra
 
Ad

Recently uploaded (20)

PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Python basic programing language for automation
DanialHabibi2
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 

Its time to React.js

  • 1. Noorul Ameen Its time to React.js © TechTalks, 2017
  • 2.  Hello World  React fundamentals – What is happening behind the scenes  Live Coding – Building “Stock Price Viewer”  Q & A Agenda © TechTalks, 2017
  • 3.  React is declarative, efficient and flexible JavaScript library for building user interfaces.  React was created by Jordan Walke from Facebook. Originally used in newsfeed and then in Instagram.com  Open Sourced in May 2013.  Highest number of stars(57,773) in “Github Front-end JavaScript frameworks” followed by Angular.  Some of the big names using react are NETFLIX, PAYPAL, AIRBNB, UBER, KHAN ACADEMY…. (Source libscore.com) React Intro © TechTalks, 2017
  • 5. What browser does behind the scenes JS HTML CSS DOM (Tree) Render Tree Web Page Style Rules © TechTalks, 2017
  • 6.  DOM and JavaScript are different  Accessing DOM from JavaScript is slow  Too many DOM updates may slow down your app Things to note © TechTalks, 2017
  • 7. The React.js way Hello World! © TechTalks, 2017
  • 9. Virtual DOM Comparison DOM (Tree) React Components (Initial Load) Virtual DOM Version 1 DOM (Tree) React Components (Page Updates) Virtual DOM Version 2 Diff of V1 & V2 © TechTalks, 2017
  • 10.  Build Reusable Components (Not templates)  Reactive Updates (React auto updates UI when data changes.)  Performance (Virtual DOM)  Testability Why React? © TechTalks, 2017
  • 11. Reduce Coupling and Increase Cohesion  Coupling: Coupling is the degree of interdependence between software modules.  Cohesion: Cohesion refers to the degree to which the elements of a module belong together. Thus, cohesion measures the strength of relationship between pieces of functionality within a given module. Build Reusable Components, Not templates © TechTalks, 2017
  • 12.  React Components follows “Reduce Coupling, increase Cohesion”.  React Components encapsulates  Data  View  Logic  Component can contain other child components. React Components © TechTalks, 2017
  • 13.  When data changes, react auto updates UI in the most efficient and performant way.  React supports one way data flow instead of two way binding.  When state changes, react re-renders the component. Also does a diff of current render with previous render and applies only the minimal set of changes to actual DOM. Reactive Updates © TechTalks, 2017
  • 14.  React creates Virtual DOM by rendering component and it is children.  It is a JavaScript object unlike real DOM.  Working with VDOM is faster than actual DOM  React patches the updates from VDOM to real DOM. Virtual DOM © TechTalks, 2017
  • 15.  React forces us to build everything as components.  Components are easy to unit test Testability © TechTalks, 2017
  • 17. Way forward – React Native (Cross Platform Mobile Apps) © TechTalks, 2017
  • 18.  React official site https://facebook.github.io/react/  Why React? https://facebook.github.io/react/blog/2013/06/05/why-react.html  NETFLIX- Crafting a high performance TV user interface using React http://techblog.netflix.com/2017/01/crafting-high-performance-tv-user.html  Source Code https://github.com/jnoorul/tech-talk-stock-viewer For further info © TechTalks, 2017