SlideShare a Scribd company logo
React for Developers
Hello World!
React for Developers
#irDevConf ■ @sia_mac
ES6
The Sixth Edition, known as ECMAScript 2015.
#irDevConf ■ @sia_mac
› How to tackle the React Ecosystem __
¬ NPM
¬ JavaScript Module Bundlers
¬ ES6
¬ ReactJS
¬ Routing
¬ Flux
#irDevConf ■ @sia_mac
› AMD & CommonJS __
¬ NPM: “Node Package Manager”
¬ Dependencies, Scripts.
¬ AMD (RequireJS) — AngularJS<2, jQuery, BackboneJS,…
¬ CommonJS — ES6.
#irDevConf ■ @sia_mac
› CommonJS A format Writing Modules in Node.JS __
#irDevConf ■ @sia_mac
index.js maths.js:
› CommonJS in Browser __
¬ JavaScript Module Bundlers:
¬ Browserify (*ify)
¬ Webpack (*-loader)
¬ RollupJS
#irDevConf ■ @sia_mac
Webpack
JavaScript Module Bundler
#irDevConf ■ @sia_mac
#irDevConf ■ @sia_mac
Webpack != Grunt/Gulp
#irDevConf ■ @sia_mac
› Webpack vs. Grunt/Gulp Diagram __
Grunt/Gulp Diagram:
#irDevConf ■ @sia_mac
one.js
two.js
Concat
Uglify
...
grid.scss
typography.scss
Compile
Minify
...
Browser
› Webpack vs. Grunt/Gulp Diagram __
Webpack Diagram:
#irDevConf ■ @sia_mac
one.js
two.js
Concat
Uglify
...
grid.scss
typography.scss
Compile
Minify
...
BrowserBundle.js
› Webpack vs. Grunt/Gulp Diagram __
Grunt/Gulp Diagram:
#irDevConf ■ @sia_mac
one.js
two.js
Concat
Uglify
...
grid.scss
typography.scss
Compile
Minify
...
Browser
› How to tackle the React Ecosystem __
¬ NPM
¬ JavaScript Module Bundlers
¬ ES6 ✔ “https://goo.gl/81ha0d”
¬ ReactJS
¬ Routing
¬ Flux
#irDevConf ■ @sia_mac
React
A JAVASCRIPT LIBRARY FOR BUILDING USER INTERFACES
#irDevConf ■ @sia_mac
› Facebook, Mother of dragons __
¬ Started by Facebook in 2013.
¬ Motivation — Building Large apps with data.
¬ Over 45k+ Star on Github.
¬ Sites Using React:
¬ Facebook, Instagram, Dropbox, PayPal, Uber, …
#irDevConf ■ @sia_mac
› Meet React __
#irDevConf ■ @sia_mac
NOT Another Framework!

Just a library for creating User Interfaces.
› Meet React __
#irDevConf ■ @sia_mac
Renders your User Interfaces
and responds to Events.
› Meet React __
#irDevConf ■ @sia_mac
React just “V” in ‘MVC’ (View)
› Meet React __
#irDevConf ■ @sia_mac
¬ React Has …
¬ No Controllers. No Directives.
¬ No Templates. No Global EventListener.
¬ No Models. No View Models.
¬ No Dirty Checking.
› Meet React __
#irDevConf ■ @sia_mac
Everything is a Component!
Everything is a Component!
Everything is a Component!
Everything is a Component!
Everything is a Component!
React for Developers
Main component:
Header CP
Header CP
Sidebar CP
Header CP
Sidebar CP Hero CP
› The Most important in Performance: __
#irDevConf ■ @sia_mac
Virtual DOM
› Virtual DOM: __
¬ Simple & Fast & Smart.
¬ 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.
¬ Batch executes all updates.
#irDevConf ■ @sia_mac
› JSX Allows you to write JS and XML Together: __
#irDevConf ■ @sia_mac
React JSX is a Sugar–Syntax for JS!
› Traditional Data flows: __
¬ No Framework: Any component can communicate with
any other component.
¬ BackboneJS: Pub–Sub.
¬ AngularJS: 2–way binding and $digest loop.
¬ ReactJS: 1–way data flow:
¬ Data handed from Parent to Child “Props”.
#irDevConf ■ @sia_mac
React vs. jQuery
#irDevConf ■ @sia_mac
› Playground __
#irDevConf ■ @sia_mac
I’ve achieved 0 Pokémon.
Another Pokémon +
› Playground __
#irDevConf ■ @sia_mac
I’ve achieved 1 Pokémon.
Another Pokémon +
› Playground __
#irDevConf ■ @sia_mac
I’ve achieved 2 Pokémons.
Another Pokémon +
› Playground __
#irDevConf ■ @sia_mac
I’ve achieved 2 Pokémons.
Another Pokémon +
Button Component
› Playground __
#irDevConf ■ @sia_mac
I’ve achieved 2 Pokémons.
Another Pokémon +
#irDevConf ■ @sia_mac
init
Button Component “jQuery”
thumbsUp
render
cacheElements handleClick
#irDevConf ■ @sia_mac
init
Button Component “React”
handleClick
thumbsUp
render
cacheElements
› State & Props: __
¬ Every Component has ‘state’ and ‘props’.
¬ ‘state’ is mutable and ‘props’ is immutable.
¬ Re-Render (Virtual DOM) the whole app once the
`state` changes.
#irDevConf ■ @sia_mac
› Why React? __
#irDevConf ■ @sia_mac
¬ Fast and Smart.
¬ Unidirectional data flow from parent components to child
components.
¬ Isomorphic (JS apps that can run both client-side and
server-side)
¬ Easy to debug & testable.
¬ Use JSX with familiar HTML like syntax for writing react
apps.
› Benefits of React? __
#irDevConf ■ @sia_mac
¬ Modular (Reusable)
¬ State–Based (Predictable)
¬ Independent (Testable)
¬ High-Performance (Virtual DOM)
bahamta.com/
mor.com.co/
evand.ir/
cinematicket.org/

New Version!
facebook.github.io/react/
References
#irDevConf ■ @sia_mac
www.slideshare.net/AndrewHull/react-js-and-why-its-awesome/
One more thing…
#irDevConf ■ @sia_mac
React Native
A framework for building native apps using React.
#irDevConf ■ @sia_mac
Thursday, Jul 21. 16:30 — 17:30.
“Public Workshop”
#irDevConf ■ @sia_mac
React for Developers

More Related Content

PDF
Angular js vs. Facebook react
PDF
Progressive Enhancement for JavaScript Apps
PDF
Packing it all: JavaScript module bundling from 2000 to now
PPTX
React vs Angular: ups & downs (speaker Oleksandr Kovalov, Binary Studio)
PPTX
Combining Angular and React Together
PDF
Rails-3-app-auto-generator-20100817
PDF
Laravel 8 export data as excel file with example
PDF
Webpack packing it all
Angular js vs. Facebook react
Progressive Enhancement for JavaScript Apps
Packing it all: JavaScript module bundling from 2000 to now
React vs Angular: ups & downs (speaker Oleksandr Kovalov, Binary Studio)
Combining Angular and React Together
Rails-3-app-auto-generator-20100817
Laravel 8 export data as excel file with example
Webpack packing it all

What's hot (20)

PDF
Integrating React.js Into a PHP Application
PDF
Beyond DOM Manipulations: Building Stateful Modules with Events and Promises
PDF
React & The Art of Managing Complexity
PDF
PWA 應用 - 實現網站離線瀏覽
PDF
Introduction to AJAX In WordPress
PDF
Patterns Are Good For Managers
PDF
React.js触ってみた 吉澤和香奈
PDF
Going Node At Netflix
PDF
Gettings started with the superheroic JavaScript library AngularJS
PDF
AngularJS - What is it & Why is it awesome ? (with demos)
PDF
The Art of AngularJS - DeRailed 2014
PPTX
Fullstack JS Workshop
PPTX
AngularJS is awesome
PPTX
Angular js for beginners
PPTX
Why angular js Framework
PDF
Workshop 9: BackboneJS y patrones MVC
PDF
React JS and why it's awesome
PPTX
React in Native Apps - Meetup React - 20150409
PDF
Introduction to AngularJS For WordPress Developers
PDF
Introduction to Redux
Integrating React.js Into a PHP Application
Beyond DOM Manipulations: Building Stateful Modules with Events and Promises
React & The Art of Managing Complexity
PWA 應用 - 實現網站離線瀏覽
Introduction to AJAX In WordPress
Patterns Are Good For Managers
React.js触ってみた 吉澤和香奈
Going Node At Netflix
Gettings started with the superheroic JavaScript library AngularJS
AngularJS - What is it & Why is it awesome ? (with demos)
The Art of AngularJS - DeRailed 2014
Fullstack JS Workshop
AngularJS is awesome
Angular js for beginners
Why angular js Framework
Workshop 9: BackboneJS y patrones MVC
React JS and why it's awesome
React in Native Apps - Meetup React - 20150409
Introduction to AngularJS For WordPress Developers
Introduction to Redux
Ad

Similar to React for Developers (20)

KEY
Ruby For Startups
PDF
From Idea to App (or “How we roll at Small Town Heroes”)
PDF
Monkeybars in the Manor
PPTX
React basic by Yoav Amit, Wix
PPTX
React django
PDF
Jaoo Michael Neale 09
PDF
React Lifecycle and Reconciliation
PDF
JS Fest 2019. Minko Gechev. Building Fast Angular Applications by Default
PDF
Affect- and Personality-based Recommender Systems Hands-on: Unobtrusive Acqui...
PDF
Streamlining Your Applications with Web Frameworks
PDF
Huge web apps web expo 2013
PDF
Ruby on Rails 101 - Presentation Slides for a Five Day Introductory Course
PDF
Úvod do programování 7
PDF
Jazoon12 355 aleksandra_gavrilovska-1
PDF
End to end todo list app with NestJs - Angular - Redux & Redux Saga
KEY
Modular Web Applications With Netzke
PPTX
PPTX
Rethinking Best Practices
PDF
Intro to-rails-webperf
PDF
From Backbone to Ember and Back(bone) Again
Ruby For Startups
From Idea to App (or “How we roll at Small Town Heroes”)
Monkeybars in the Manor
React basic by Yoav Amit, Wix
React django
Jaoo Michael Neale 09
React Lifecycle and Reconciliation
JS Fest 2019. Minko Gechev. Building Fast Angular Applications by Default
Affect- and Personality-based Recommender Systems Hands-on: Unobtrusive Acqui...
Streamlining Your Applications with Web Frameworks
Huge web apps web expo 2013
Ruby on Rails 101 - Presentation Slides for a Five Day Introductory Course
Úvod do programování 7
Jazoon12 355 aleksandra_gavrilovska-1
End to end todo list app with NestJs - Angular - Redux & Redux Saga
Modular Web Applications With Netzke
Rethinking Best Practices
Intro to-rails-webperf
From Backbone to Ember and Back(bone) Again
Ad

Recently uploaded (20)

PDF
System and Network Administraation Chapter 3
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Transform Your Business with a Software ERP System
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
AI in Product Development-omnex systems
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
medical staffing services at VALiNTRY
System and Network Administraation Chapter 3
Wondershare Filmora 15 Crack With Activation Key [2025
Transform Your Business with a Software ERP System
Navsoft: AI-Powered Business Solutions & Custom Software Development
Upgrade and Innovation Strategies for SAP ERP Customers
Odoo POS Development Services by CandidRoot Solutions
How to Choose the Right IT Partner for Your Business in Malaysia
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Reimagine Home Health with the Power of Agentic AI​
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
AI in Product Development-omnex systems
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Which alternative to Crystal Reports is best for small or large businesses.pdf
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
How to Migrate SBCGlobal Email to Yahoo Easily
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
medical staffing services at VALiNTRY

React for Developers