SlideShare a Scribd company logo
Starting with ReactJS
Thinh VoXuan
Sprint 2016
• Fullstack developer @ GEEKUp
• Love Javascript
Thinh VoXuan
Starting with ReactJS
2
• A Facebook & Instagram collaboration.
• Initial release from 2013
• 37.776 Star in GitHub
• A JAVASCRIPT LIBRARY FOR BUILDING
USER INTERFACES
Short Summary
Starting with ReactJS
3
Create new component
Starting with ReactJS
4
Game with: https://facebook.github.io/react/index.html
Reverse keywork javascript
•class  className
•for  forHtml
Create new component
Starting with ReactJS
5
Create new component
Starting with ReactJS
6
Playground: https://jsfiddle.net/voxuanthinh/w7g5zjLn/1/
Reactlize from html
Starting with ReactJS
7
Reactlize from html
Starting with ReactJS
8
Reactlize from html
Starting with ReactJS
9
Virtual DOM
Starting with ReactJS
10
• npm install --save react react-dom
• npm install --save-dev babel-core babel-loader babel-
preset-react
html-webpack-plugin webpack webpack-dev-server
• Create folder structure as
Setup first project
Starting with ReactJS
11
• Config webpack
Setup first project
Starting with ReactJS
12
• Config .babelrc
• Change run script in package.json
Setup first project
Starting with ReactJS
13
• Add html to index.html
• Add script to index.js
Setup first project
Starting with ReactJS
14
• Add script to index.js
• Then run npm run start. Check your browser with
address localhost:8080
Setup first project
Starting with ReactJS
15
• What is Babel?
• What is Webpack ?
Setup first project - Question
Starting with ReactJS
16
props
•Pass from Parent
•Updating from parent
Component
•Could pass from Parent to
Child component
props vs state
Starting with ReactJS
17
state
•Initial value from Parent
•self-update via
this.setState()
•Is private property of
component.
props & state
•Input data for render() function of a Component
•Trigger render update
props vs state
Starting with ReactJS
18
props vs state
Starting with ReactJS
19
LifeCycle of Component
Starting with ReactJS
20
JQuery
•A Library
•Imperative ways
•What problem with jQuery
style?
Imperative vs Declarative
Starting with ReactJS
21
ReactJS
•A Library
•Declarative ways
Container vs Presentation
Starting with ReactJS
22Play ground: https://jsfiddle.net/voxuanthinh/umx2y5yx/2/
Container vs Presentation
Starting with ReactJS
23Playground: https://jsfiddle.net/reactjs/n47gckhr/
A container does data fetching and then
renders its corresponding sub-component.
That’s it.
Reference:
•https://medium.com/@learnreact/container-components-
c0e67432e005
•https://facebook.github.io/react/docs/thinking-in-react.html
Container vs Presentation
Starting with ReactJS
24
React real example
Starting with ReactJS
25
React Ecosystem:
•React
•Node.JS
•Routing with react-router
•Flux architecture
•Inline styles
React More….
Starting with ReactJS
26
• https://facebook.github.io/
• http://www.reactjsprogram.com/
• http://6.470.scripts.mit.edu/2014/slides/React-MIT.pdf
• https://github.com/uberVU/react-
guide/blob/master/props-vs-state.md
• https://medium.com/@learnreact/container-components-
c0e67432e005
• http://www.slideshare.net/krasimirtsonev3/reactjs-the-
good-the-bad-and-the-ugly
References
Starting with ReactJS
27
Question & Answers
Starting with ReactJS
28
Thank you
Starting with ReactJS
29

More Related Content

PDF
Introduction to ReactJS
Tu Hoang
Ā 
PPTX
Reactjs workshop
Ahmed rebai
Ā 
PDF
Introduction to ReactJS
Hoang Long
Ā 
PDF
Workshop React.js
Commit University
Ā 
PPTX
Introduction to ReactJs & fundamentals
websyndicate
Ā 
PDF
Introduction to react
kiranabburi
Ā 
PDF
Breaking the Server-Client Divide with Node.js and React
Dejan Glozic
Ā 
PPTX
Introduction to react_js
MicroPyramid .
Ā 
Introduction to ReactJS
Tu Hoang
Ā 
Reactjs workshop
Ahmed rebai
Ā 
Introduction to ReactJS
Hoang Long
Ā 
Workshop React.js
Commit University
Ā 
Introduction to ReactJs & fundamentals
websyndicate
Ā 
Introduction to react
kiranabburi
Ā 
Breaking the Server-Client Divide with Node.js and React
Dejan Glozic
Ā 
Introduction to react_js
MicroPyramid .
Ā 

What's hot (20)

PPTX
Reactjs
Neha Sharma
Ā 
PPTX
A Brief Introduction to React.js
Doug Neiner
Ā 
PDF
React JS - Introduction
Sergey Romaneko
Ā 
PPTX
Getting Started With ReactJS
Sandeep Kumar Patel
Ā 
PDF
Robust web apps with React.js
Max Klymyshyn
Ā 
PPTX
React js Online Training
Learntek1
Ā 
PDF
ReactJS presentation
Thanh Tuong
Ā 
PPTX
React JS part 1
Diluka Wittahachchige
Ā 
PPTX
007. Redux middlewares
Binh Quan Duc
Ā 
PPTX
React JS: A Secret Preview
valuebound
Ā 
PPTX
React.js - The Dawn of Virtual DOM
Jimit Shah
Ā 
PDF
React.js in real world apps.
Emanuele DelBono
Ā 
PPTX
React js programming concept
Tariqul islam
Ā 
PDF
Understanding Facebook's React.js
Federico Torre
Ā 
PDF
Building Modern Web Applications using React and Redux
Maxime Najim
Ā 
PPTX
Better web apps with React and Redux
Ali Sa'o
Ā 
PDF
React js
Rajesh Kolla
Ā 
PPT
React js
Jai Santhosh
Ā 
PPTX
Internal workshop react-js-mruiz
Miguel Ruiz Rodriguez
Ā 
Reactjs
Neha Sharma
Ā 
A Brief Introduction to React.js
Doug Neiner
Ā 
React JS - Introduction
Sergey Romaneko
Ā 
Getting Started With ReactJS
Sandeep Kumar Patel
Ā 
Robust web apps with React.js
Max Klymyshyn
Ā 
React js Online Training
Learntek1
Ā 
ReactJS presentation
Thanh Tuong
Ā 
React JS part 1
Diluka Wittahachchige
Ā 
007. Redux middlewares
Binh Quan Duc
Ā 
React JS: A Secret Preview
valuebound
Ā 
React.js - The Dawn of Virtual DOM
Jimit Shah
Ā 
React.js in real world apps.
Emanuele DelBono
Ā 
React js programming concept
Tariqul islam
Ā 
Understanding Facebook's React.js
Federico Torre
Ā 
Building Modern Web Applications using React and Redux
Maxime Najim
Ā 
Better web apps with React and Redux
Ali Sa'o
Ā 
React js
Rajesh Kolla
Ā 
React js
Jai Santhosh
Ā 
Internal workshop react-js-mruiz
Miguel Ruiz Rodriguez
Ā 
Ad

Viewers also liked (20)

PPTX
003. ReactJS basic
Binh Quan Duc
Ā 
PDF
Intro to ReactJS
Harvard Web Working Group
Ā 
PPTX
006. React - Redux framework
Binh Quan Duc
Ā 
PPTX
005. a React project structure
Binh Quan Duc
Ā 
PDF
Using ReactJS in AngularJS
Boris Dinkevich
Ā 
PDF
Finally, Professional Frontend Dev with ReactJS, WebPack & Symfony (Symfony C...
Ryan Weaver
Ā 
PPT
Pomodoro
Thinh VoXuan
Ā 
PPT
Promise on iOs
Thinh VoXuan
Ā 
PPTX
Academy PRO: React JS. Redux & Tooling
Binary Studio
Ā 
PDF
1335829820.8071 integrated%20hospital%20management%20system%20%5bihms%5d
ashlinrockey
Ā 
PPTX
Introduction to JavaScript Programming
Raveendra R
Ā 
PDF
Hugo - Introduction
Eueung Mulyana
Ā 
PDF
Web Development best practices
Fadwa Gmiden
Ā 
PDF
Even more java script best practices
ChengHui Weng
Ā 
PDF
Show & tell - Who is Hugo?
Dan Dineen
Ā 
PPTX
U97 JavaScript Webinar
Uniface
Ā 
PPTX
JavaScript Full-Stack Development Course Session 01
Basir Jafarzadeh
Ā 
PDF
Workshop 22: ReactJS Redux Advanced
Visual Engineering
Ā 
PPTX
Graphic Design For Web
Deniz GƶkƧe
Ā 
PDF
panduan-google-adsense.pdf
SMK Negeri 6 Malang
Ā 
003. ReactJS basic
Binh Quan Duc
Ā 
Intro to ReactJS
Harvard Web Working Group
Ā 
006. React - Redux framework
Binh Quan Duc
Ā 
005. a React project structure
Binh Quan Duc
Ā 
Using ReactJS in AngularJS
Boris Dinkevich
Ā 
Finally, Professional Frontend Dev with ReactJS, WebPack & Symfony (Symfony C...
Ryan Weaver
Ā 
Pomodoro
Thinh VoXuan
Ā 
Promise on iOs
Thinh VoXuan
Ā 
Academy PRO: React JS. Redux & Tooling
Binary Studio
Ā 
1335829820.8071 integrated%20hospital%20management%20system%20%5bihms%5d
ashlinrockey
Ā 
Introduction to JavaScript Programming
Raveendra R
Ā 
Hugo - Introduction
Eueung Mulyana
Ā 
Web Development best practices
Fadwa Gmiden
Ā 
Even more java script best practices
ChengHui Weng
Ā 
Show & tell - Who is Hugo?
Dan Dineen
Ā 
U97 JavaScript Webinar
Uniface
Ā 
JavaScript Full-Stack Development Course Session 01
Basir Jafarzadeh
Ā 
Workshop 22: ReactJS Redux Advanced
Visual Engineering
Ā 
Graphic Design For Web
Deniz GƶkƧe
Ā 
panduan-google-adsense.pdf
SMK Negeri 6 Malang
Ā 
Ad

Similar to Starting with Reactjs (20)

PPTX
GDG Workshop on React (By Aakanksha Rai)
gdgoncampuslncts
Ā 
PDF
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
Zach Lendon
Ā 
PDF
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Zach Lendon
Ā 
PDF
0900 learning-react
RohitYadav696
Ā 
PDF
react.pdf
yihunie2
Ā 
PDF
Using React with Grails 3
Zachary Klein
Ā 
PDF
Intro to react native
ModusJesus
Ā 
PDF
Bundle your modules with Webpack
Jake Peyser
Ā 
PDF
Installing Webpack with React JS from Scratch.pdf
Sufalam Technologies
Ā 
PDF
React on rails v6.1 at LA Ruby, November 2016
Justin Gordon
Ā 
PPSX
React-Js-Online-Training-9028522.ppsx
Kulbir4
Ā 
PPTX
slides.pptx
HafidzIhzaPratama
Ā 
PPTX
slides.pptx
HarshitJain302462
Ā 
PPTX
React JS .NET
Jennifer Estrada
Ā 
PPTX
Build web apps with react js
dhanushkacnd
Ā 
PPTX
slides oif mlsa oigf fhdhd cgdgd gggd bdg.pptx
PRINCEOJHA11
Ā 
PPTX
GDSC NITS Presents Kickstart into ReactJS
Pratik Majumdar
Ā 
PPTX
INTRODUCTION TO REACT JAVASCRIPT FOR BEGINNERS.pptx
JamesGedza1
Ā 
PPTX
data science course in bangalore|data analyst course in bangalore
EsgbnmkPhcm
Ā 
PPTX
react js training in mumbai|react js training online
EsgbnmkPhcm
Ā 
GDG Workshop on React (By Aakanksha Rai)
gdgoncampuslncts
Ā 
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
Zach Lendon
Ā 
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Zach Lendon
Ā 
0900 learning-react
RohitYadav696
Ā 
react.pdf
yihunie2
Ā 
Using React with Grails 3
Zachary Klein
Ā 
Intro to react native
ModusJesus
Ā 
Bundle your modules with Webpack
Jake Peyser
Ā 
Installing Webpack with React JS from Scratch.pdf
Sufalam Technologies
Ā 
React on rails v6.1 at LA Ruby, November 2016
Justin Gordon
Ā 
React-Js-Online-Training-9028522.ppsx
Kulbir4
Ā 
slides.pptx
HafidzIhzaPratama
Ā 
slides.pptx
HarshitJain302462
Ā 
React JS .NET
Jennifer Estrada
Ā 
Build web apps with react js
dhanushkacnd
Ā 
slides oif mlsa oigf fhdhd cgdgd gggd bdg.pptx
PRINCEOJHA11
Ā 
GDSC NITS Presents Kickstart into ReactJS
Pratik Majumdar
Ā 
INTRODUCTION TO REACT JAVASCRIPT FOR BEGINNERS.pptx
JamesGedza1
Ā 
data science course in bangalore|data analyst course in bangalore
EsgbnmkPhcm
Ā 
react js training in mumbai|react js training online
EsgbnmkPhcm
Ā 

Recently uploaded (20)

PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
Ā 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
Ā 
PDF
Software Development Methodologies in 2025
KodekX
Ā 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
Ā 
PDF
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
Ā 
PDF
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
Ā 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
Ā 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
Ā 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
Ā 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
Ā 
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
Ā 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
Ā 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
Ā 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
Ā 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
Ā 
PDF
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
Ā 
PDF
Doc9.....................................
SofiaCollazos
Ā 
PDF
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
Ā 
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Captain IT
Ā 
PDF
Software Development Company | KodekX
KodekX
Ā 
DevOps & Developer Experience Summer BBQ
AUGNYC
Ā 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
Ā 
Software Development Methodologies in 2025
KodekX
Ā 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
Ā 
Enable Enterprise-Ready Security on IBM i Systems.pdf
Precisely
Ā 
Revolutionize Operations with Intelligent IoT Monitoring and Control
Rejig Digital
Ā 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
Ā 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
Ā 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
Ā 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
Ā 
madgavkar20181017ppt McKinsey Presentation.pdf
georgschmitzdoerner
Ā 
cloud computing vai.pptx for the project
vaibhavdobariyal79
Ā 
REPORT: Heating appliances market in Poland 2024
SPIUG
Ā 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
Ā 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
Ā 
Advances in Ultra High Voltage (UHV) Transmission and Distribution Systems.pdf
Nabajyoti Banik
Ā 
Doc9.....................................
SofiaCollazos
Ā 
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
Ā 
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Captain IT
Ā 
Software Development Company | KodekX
KodekX
Ā 

Starting with Reactjs

Editor's Notes

  • #5: <div> <h1> this is title </h1> <p> this is content </p> <ul> <li> first element </li> <li> second element </li> </ul> </div>
  • #8: childrean