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
PPTX
Reactjs workshop
PDF
Introduction to ReactJS
PDF
Workshop React.js
PPTX
Introduction to ReactJs & fundamentals
PDF
Introduction to react
PDF
Breaking the Server-Client Divide with Node.js and React
PPTX
Introduction to react_js
Introduction to ReactJS
Reactjs workshop
Introduction to ReactJS
Workshop React.js
Introduction to ReactJs & fundamentals
Introduction to react
Breaking the Server-Client Divide with Node.js and React
Introduction to react_js

What's hot (20)

PPTX
Reactjs
PPTX
A Brief Introduction to React.js
PDF
React JS - Introduction
PPTX
Getting Started With ReactJS
PDF
Robust web apps with React.js
PPTX
React js Online Training
PDF
ReactJS presentation
PPTX
React JS part 1
PPTX
007. Redux middlewares
PPTX
React JS: A Secret Preview
PPTX
React.js - The Dawn of Virtual DOM
PDF
React.js in real world apps.
PPTX
React js programming concept
PDF
Understanding Facebook's React.js
PDF
Building Modern Web Applications using React and Redux
PPTX
Better web apps with React and Redux
PDF
React js
PPT
React js
PPTX
Internal workshop react-js-mruiz
Reactjs
A Brief Introduction to React.js
React JS - Introduction
Getting Started With ReactJS
Robust web apps with React.js
React js Online Training
ReactJS presentation
React JS part 1
007. Redux middlewares
React JS: A Secret Preview
React.js - The Dawn of Virtual DOM
React.js in real world apps.
React js programming concept
Understanding Facebook's React.js
Building Modern Web Applications using React and Redux
Better web apps with React and Redux
React js
React js
Internal workshop react-js-mruiz
Ad

Viewers also liked (20)

PPTX
003. ReactJS basic
PDF
Intro to ReactJS
PPTX
006. React - Redux framework
PPTX
005. a React project structure
PDF
Using ReactJS in AngularJS
PDF
Finally, Professional Frontend Dev with ReactJS, WebPack & Symfony (Symfony C...
PPT
Pomodoro
PPT
Promise on iOs
PPTX
Academy PRO: React JS. Redux & Tooling
PDF
1335829820.8071 integrated%20hospital%20management%20system%20%5bihms%5d
PPTX
Introduction to JavaScript Programming
PDF
Hugo - Introduction
PDF
Web Development best practices
PDF
Even more java script best practices
PDF
Show & tell - Who is Hugo?
PPTX
U97 JavaScript Webinar
PPTX
JavaScript Full-Stack Development Course Session 01
PDF
Workshop 22: ReactJS Redux Advanced
PPTX
Graphic Design For Web
PDF
panduan-google-adsense.pdf
003. ReactJS basic
Intro to ReactJS
006. React - Redux framework
005. a React project structure
Using ReactJS in AngularJS
Finally, Professional Frontend Dev with ReactJS, WebPack & Symfony (Symfony C...
Pomodoro
Promise on iOs
Academy PRO: React JS. Redux & Tooling
1335829820.8071 integrated%20hospital%20management%20system%20%5bihms%5d
Introduction to JavaScript Programming
Hugo - Introduction
Web Development best practices
Even more java script best practices
Show & tell - Who is Hugo?
U97 JavaScript Webinar
JavaScript Full-Stack Development Course Session 01
Workshop 22: ReactJS Redux Advanced
Graphic Design For Web
panduan-google-adsense.pdf
Ad

Similar to Starting with Reactjs (20)

PDF
react.pdf
PDF
0900 learning-react
PDF
Master React in 20 Days !.pdf used for react
PPTX
theory-slides-for react for beginners.pptx
PDF
theory-slides-vueh3urh4ur4ur4r44oirj4riu4ri
PPTX
React_Complete.pptx
PDF
react hook and wesite making structure ppt
PPTX
2.React tttttttttttttttttttttttttttttttt
PPTX
Introduction to React Language (1).pptx
PPSX
React introduction
PDF
Welcome to React & Flux !
PPTX
React JS Workings Exercises Extra Classes
PPTX
React Workshop: Core concepts of react
PPTX
Dyanaimcs of business and economics unit 2
PPTX
reactJS
PPTX
001. Introduction about React
PDF
The complete-beginners-guide-to-react dyrr
PPTX
React workshop
PDF
Workshop 19: ReactJS Introduction
PPTX
ReactJS (1)
react.pdf
0900 learning-react
Master React in 20 Days !.pdf used for react
theory-slides-for react for beginners.pptx
theory-slides-vueh3urh4ur4ur4r44oirj4riu4ri
React_Complete.pptx
react hook and wesite making structure ppt
2.React tttttttttttttttttttttttttttttttt
Introduction to React Language (1).pptx
React introduction
Welcome to React & Flux !
React JS Workings Exercises Extra Classes
React Workshop: Core concepts of react
Dyanaimcs of business and economics unit 2
reactJS
001. Introduction about React
The complete-beginners-guide-to-react dyrr
React workshop
Workshop 19: ReactJS Introduction
ReactJS (1)

Recently uploaded (20)

PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
Cloud computing and distributed systems.
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Approach and Philosophy of On baking technology
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Encapsulation theory and applications.pdf
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectral efficient network and resource selection model in 5G networks
Review of recent advances in non-invasive hemoglobin estimation
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Digital-Transformation-Roadmap-for-Companies.pptx
Cloud computing and distributed systems.
NewMind AI Monthly Chronicles - July 2025
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Modernizing your data center with Dell and AMD
Approach and Philosophy of On baking technology
Diabetes mellitus diagnosis method based random forest with bat algorithm
Unlocking AI with Model Context Protocol (MCP)
Chapter 3 Spatial Domain Image Processing.pdf
MYSQL Presentation for SQL database connectivity
Encapsulation theory and applications.pdf

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