SlideShare a Scribd company logo
9
Most read
13
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

PPTX
[Final] ReactJS presentation
PPTX
Introduction to React JS for beginners
PDF
ReactJS presentation
PPTX
Introduction to React JS
PPTX
Introduction to React JS for beginners | Namespace IT
PPTX
React JS: A Secret Preview
PDF
Structured Approach to Solution Architecture
[Final] ReactJS presentation
Introduction to React JS for beginners
ReactJS presentation
Introduction to React JS
Introduction to React JS for beginners | Namespace IT
React JS: A Secret Preview
Structured Approach to Solution Architecture

What's hot (20)

PPTX
React workshop
PPTX
React JS - A quick introduction tutorial
PPTX
Reactjs
PDF
React js
PPTX
Introduction to React
PDF
An introduction to React.js
PDF
Introduction to React JS
PPT
React js
PDF
React JS - Introduction
PPTX
Introduction to react_js
PPTX
React + Redux Introduction
PPTX
reactJS
PPTX
React js - The Core Concepts
PDF
React Js Simplified
PPTX
React js for beginners
ODP
Introduction to ReactJS
PPTX
Intro to React
PDF
Introduction to ReactJS
PPTX
React js programming concept
PPTX
React workshop
React JS - A quick introduction tutorial
Reactjs
React js
Introduction to React
An introduction to React.js
Introduction to React JS
React js
React JS - Introduction
Introduction to react_js
React + Redux Introduction
reactJS
React js - The Core Concepts
React Js Simplified
React js for beginners
Introduction to ReactJS
Intro to React
Introduction to ReactJS
React js programming concept
Ad

Similar to Its time to React.js (20)

PDF
Maximize Development Efficiency with ReactJS.pdf
PDF
How Can the Hermes Engine Help React Native Apps.docx.pdf
PDF
How Can the Hermes Engine Help React Native Apps.
PDF
Vue Js vs React: Which is the Best JS Technology in 2023
PDF
React js vs react native a comparative analysis
PDF
Review on React JS
PDF
FRONTEND DEVELOPMENT WITH REACT.JS
PPTX
Vue Or React - Which One is the Best_.pptx
PDF
Front End Development
PDF
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
PDF
Best 10 Advantages Of React.js Development For Your Business
PDF
Boost Startup Success: Hire Skilled ReactJS Developers Today
PPTX
React vs React Native
PDF
why_choose_react_js_development_for_building_websites_in_2023.pdf
PDF
Learning React js Learn React JS From Scratch with Hands On Projects 2nd Edit...
PDF
What are the business benefits of ReactJS for web and mobile applications_.pdf
PPTX
What is ReactJS?
PDF
React Vs Vue.js Which One is Better.pdf
PDF
Web Development.pdf
PDF
React vs. angular a comprehensive guideline for choosing right front-end fr...
Maximize Development Efficiency with ReactJS.pdf
How Can the Hermes Engine Help React Native Apps.docx.pdf
How Can the Hermes Engine Help React Native Apps.
Vue Js vs React: Which is the Best JS Technology in 2023
React js vs react native a comparative analysis
Review on React JS
FRONTEND DEVELOPMENT WITH REACT.JS
Vue Or React - Which One is the Best_.pptx
Front End Development
ReactJS Vs React Native: Understanding Differences, Advantages, Disadvantages
Best 10 Advantages Of React.js Development For Your Business
Boost Startup Success: Hire Skilled ReactJS Developers Today
React vs React Native
why_choose_react_js_development_for_building_websites_in_2023.pdf
Learning React js Learn React JS From Scratch with Hands On Projects 2nd Edit...
What are the business benefits of ReactJS for web and mobile applications_.pdf
What is ReactJS?
React Vs Vue.js Which One is Better.pdf
Web Development.pdf
React vs. angular a comprehensive guideline for choosing right front-end fr...
Ad

More from Ritesh Mehrotra (6)

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

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
August Patch Tuesday
PDF
Encapsulation theory and applications.pdf
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Tartificialntelligence_presentation.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Mushroom cultivation and it's methods.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
August Patch Tuesday
Encapsulation theory and applications.pdf
SOPHOS-XG Firewall Administrator PPT.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
1. Introduction to Computer Programming.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Network Security Unit 5.pdf for BCA BBA.
OMC Textile Division Presentation 2021.pptx
Accuracy of neural networks in brain wave diagnosis of schizophrenia
A comparative analysis of optical character recognition models for extracting...
Assigned Numbers - 2025 - Bluetooth® Document
Tartificialntelligence_presentation.pptx
Unlocking AI with Model Context Protocol (MCP)
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Mushroom cultivation and it's methods.pdf

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