(Go: >> BACK << -|- >> HOME <<)

SlideShare a Scribd company logo
React JS
Introduction
What is React?
React is a JavaScript library created by a
collaboration of Facebook and Instagram.
Its aim is to allow developers
to create fast user interfaces easily.
Big companies use React
Facebook
Yahoo!
Airbnb
Instagram
Sony
React isn’t a complete
framework.
React is just the V in MVC.
Main aspects of React
VIRTUAL DOM REAL DOM
PATCH
virtial dom tree real dom tree
SERVER-SIDE RENDERING
BROWSER
REACT
NODE.JS
Updates Markup
Data Data
Page Render
HTTP Request
ONE-WAY DATA-BINDING MODEL
Getting Started with React
COMPONENTS
COMPONENTS
var MyComponent = React.createClass({
render: function() {
return (
React.createElement("div", null, "Hello World");
)
}
});
React.render(
<MyComponent/>,
document.body
);
JSX
JSX
var MyComponent = React.createClass({
render: function() {
return (
<h1>Hello World</h1>
)
}
});
React.render(
<MyComponent/>,
document.body
);
PROPS
PROPS
var MyComponent = React.createClass({
render: function() {
return (
<h1>{this.props.message}</h1>
)
}
});
React.render(
<MyComponent message="Hello World"/>,
document.body
);
STATE
STATE
var MyComponent = React.createClass({
getInitialState: function() {
return {
message: "Hello World"
}
},
render: function() {
return (
<h1>{this.state.message}</h1>
)
}
});
React.render(<MyComponent/>, document.body);
Simple APP with React
index.html
<html>
<head>
<title>Hello World with React</title>
</head>
<body>
<script src="https://fb.me/react-0.12.2.js"></script>
<script src="https://fb.me/JSXTransformer-0.12.2.js"></script>
<script type="text/jsx" src="hello.jsx"></script>
<script type="text/jsx" src="main.jsx"></script>
</body>
</html>
hello.jsx
var Hello = React.createClass({
render: function() {
return <p>{this.props.message}</p>;
}
});
main.jsx
React.render(
<Hello message="Hello, world!" />,
document.body
);
Sergey Romanenko
@AwilumIT

More Related Content

What's hot

Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
Bethmi Gunasekara
 
Introduction to react_js
Introduction to react_jsIntroduction to react_js
Introduction to react_js
MicroPyramid .
 
Introduction to React JS for beginners | Namespace IT
Introduction to React JS for beginners | Namespace ITIntroduction to React JS for beginners | Namespace IT
Introduction to React JS for beginners | Namespace IT
namespaceit
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
Knoldus Inc.
 
Intro to React
Intro to ReactIntro to React
Intro to React
Justin Reock
 
ReactJs
ReactJsReactJs
React workshop
React workshopReact workshop
React workshop
Imran Sayed
 
React + Redux Introduction
React + Redux IntroductionReact + Redux Introduction
React + Redux Introduction
Nikolaus Graf
 
reactJS
reactJSreactJS
reactJS
Syam Santhosh
 
React js
React jsReact js
React js for beginners
React js for beginnersReact js for beginners
React js for beginners
Alessandro Valenti
 
An Introduction to ReactJS
An Introduction to ReactJSAn Introduction to ReactJS
An Introduction to ReactJS
All Things Open
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Preview
valuebound
 
Intro to React
Intro to ReactIntro to React
Intro to React
Eric Westfall
 
React js
React jsReact js
React js
Nikhil Karkra
 
A Brief Introduction to React.js
A Brief Introduction to React.jsA Brief Introduction to React.js
A Brief Introduction to React.js
Doug Neiner
 
React.js - The Dawn of Virtual DOM
React.js - The Dawn of Virtual DOMReact.js - The Dawn of Virtual DOM
React.js - The Dawn of Virtual DOM
Jimit Shah
 
React js - The Core Concepts
React js - The Core ConceptsReact js - The Core Concepts
React js - The Core Concepts
Divyang Bhambhani
 
React workshop presentation
React workshop presentationReact workshop presentation
React workshop presentation
Bojan Golubović
 
ReactJS presentation.pptx
ReactJS presentation.pptxReactJS presentation.pptx
ReactJS presentation.pptx
DivyanshGupta922023
 

What's hot (20)

Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
 
Introduction to react_js
Introduction to react_jsIntroduction to react_js
Introduction to react_js
 
Introduction to React JS for beginners | Namespace IT
Introduction to React JS for beginners | Namespace ITIntroduction to React JS for beginners | Namespace IT
Introduction to React JS for beginners | Namespace IT
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
 
Intro to React
Intro to ReactIntro to React
Intro to React
 
ReactJs
ReactJsReactJs
ReactJs
 
React workshop
React workshopReact workshop
React workshop
 
React + Redux Introduction
React + Redux IntroductionReact + Redux Introduction
React + Redux Introduction
 
reactJS
reactJSreactJS
reactJS
 
React js
React jsReact js
React js
 
React js for beginners
React js for beginnersReact js for beginners
React js for beginners
 
An Introduction to ReactJS
An Introduction to ReactJSAn Introduction to ReactJS
An Introduction to ReactJS
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Preview
 
Intro to React
Intro to ReactIntro to React
Intro to React
 
React js
React jsReact js
React js
 
A Brief Introduction to React.js
A Brief Introduction to React.jsA Brief Introduction to React.js
A Brief Introduction to React.js
 
React.js - The Dawn of Virtual DOM
React.js - The Dawn of Virtual DOMReact.js - The Dawn of Virtual DOM
React.js - The Dawn of Virtual DOM
 
React js - The Core Concepts
React js - The Core ConceptsReact js - The Core Concepts
React js - The Core Concepts
 
React workshop presentation
React workshop presentationReact workshop presentation
React workshop presentation
 
ReactJS presentation.pptx
ReactJS presentation.pptxReactJS presentation.pptx
ReactJS presentation.pptx
 

Viewers also liked

React.js Basics - ConvergeSE 2015
React.js Basics - ConvergeSE 2015React.js Basics - ConvergeSE 2015
React.js Basics - ConvergeSE 2015
Robert Pearce
 
Isomorphic react in real life
Isomorphic react in real lifeIsomorphic react in real life
Isomorphic react in real life
React London Community
 
How to use React.js
How to use React.jsHow to use React.js
How to use React.js
Andrej Gajdos
 
Client side rendering the good kind of outsourcing
Client side rendering   the good kind of outsourcingClient side rendering   the good kind of outsourcing
Client side rendering the good kind of outsourcing
Julian Lam
 
React.js & Om: A hands-on walkthrough of better ways to build web UIs
React.js & Om: A hands-on walkthrough of better ways to build web UIsReact.js & Om: A hands-on walkthrough of better ways to build web UIs
React.js & Om: A hands-on walkthrough of better ways to build web UIs
Adam Solove
 
EVOLVE'16 | Enhance | Murthy Peri | Empowering Digital Markets with Agile and...
EVOLVE'16 | Enhance | Murthy Peri | Empowering Digital Markets with Agile and...EVOLVE'16 | Enhance | Murthy Peri | Empowering Digital Markets with Agile and...
EVOLVE'16 | Enhance | Murthy Peri | Empowering Digital Markets with Agile and...
Evolve The Adobe Digital Marketing Community
 
Integrating React.js Into a PHP Application
Integrating React.js Into a PHP ApplicationIntegrating React.js Into a PHP Application
Integrating React.js Into a PHP Application
Andrew Rota
 

Viewers also liked (7)

React.js Basics - ConvergeSE 2015
React.js Basics - ConvergeSE 2015React.js Basics - ConvergeSE 2015
React.js Basics - ConvergeSE 2015
 
Isomorphic react in real life
Isomorphic react in real lifeIsomorphic react in real life
Isomorphic react in real life
 
How to use React.js
How to use React.jsHow to use React.js
How to use React.js
 
Client side rendering the good kind of outsourcing
Client side rendering   the good kind of outsourcingClient side rendering   the good kind of outsourcing
Client side rendering the good kind of outsourcing
 
React.js & Om: A hands-on walkthrough of better ways to build web UIs
React.js & Om: A hands-on walkthrough of better ways to build web UIsReact.js & Om: A hands-on walkthrough of better ways to build web UIs
React.js & Om: A hands-on walkthrough of better ways to build web UIs
 
EVOLVE'16 | Enhance | Murthy Peri | Empowering Digital Markets with Agile and...
EVOLVE'16 | Enhance | Murthy Peri | Empowering Digital Markets with Agile and...EVOLVE'16 | Enhance | Murthy Peri | Empowering Digital Markets with Agile and...
EVOLVE'16 | Enhance | Murthy Peri | Empowering Digital Markets with Agile and...
 
Integrating React.js Into a PHP Application
Integrating React.js Into a PHP ApplicationIntegrating React.js Into a PHP Application
Integrating React.js Into a PHP Application
 

Similar to React JS - Introduction

Introduction to react and redux
Introduction to react and reduxIntroduction to react and redux
Introduction to react and redux
Cuong Ho
 
ReactJS
ReactJSReactJS
React - An Introduction
React - An IntroductionReact - An Introduction
React - An Introduction
Tyler Johnston
 
Build web apps with react js
Build web apps with react jsBuild web apps with react js
Build web apps with react js
dhanushkacnd
 
React JS .NET
React JS .NETReact JS .NET
React JS .NET
Jennifer Estrada
 
A React Journey
A React JourneyA React Journey
A React Journey
LinkMe Srl
 
Learn react-js
Learn react-jsLearn react-js
React - Start learning today
React - Start learning today React - Start learning today
React - Start learning today
Nitin Tyagi
 
Techpaathshala ReactJS .pdf
Techpaathshala ReactJS .pdfTechpaathshala ReactJS .pdf
Techpaathshala ReactJS .pdf
Techpaathshala
 
REACT JS FULL COURSE | PERFECTKODE
REACT JS FULL COURSE | PERFECTKODEREACT JS FULL COURSE | PERFECTKODE
REACT JS FULL COURSE | PERFECTKODE
Perfectkode Software Technology
 
Tech Talk on ReactJS
Tech Talk on ReactJSTech Talk on ReactJS
Tech Talk on ReactJS
Atlogys Technical Consulting
 
Introduction to React and MobX
Introduction to React and MobXIntroduction to React and MobX
Introduction to React and MobX
Anjali Chawla
 
Maximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdfMaximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdf
BOSC Tech Labs
 
Introduction to React for Frontend Developers
Introduction to React for Frontend DevelopersIntroduction to React for Frontend Developers
Introduction to React for Frontend Developers
Sergio Nakamura
 
Review on React JS
Review on React JSReview on React JS
Review on React JS
ijtsrd
 
React & Redux in Hulu
React & Redux in HuluReact & Redux in Hulu
React & Redux in Hulu
Morgan Cheng
 
Combining Angular and React Together
Combining Angular and React TogetherCombining Angular and React Together
Combining Angular and React Together
Sebastian Pederiva
 
Skill practical javascript diy projects
Skill practical javascript diy projectsSkill practical javascript diy projects
Skill practical javascript diy projects
SkillPracticalEdTech
 
React JS part 1
React JS part 1React JS part 1
React JS part 1
Diluka Wittahachchige
 
All about React Js
All about React JsAll about React Js
All about React Js
Gargi Raghav
 

Similar to React JS - Introduction (20)

Introduction to react and redux
Introduction to react and reduxIntroduction to react and redux
Introduction to react and redux
 
ReactJS
ReactJSReactJS
ReactJS
 
React - An Introduction
React - An IntroductionReact - An Introduction
React - An Introduction
 
Build web apps with react js
Build web apps with react jsBuild web apps with react js
Build web apps with react js
 
React JS .NET
React JS .NETReact JS .NET
React JS .NET
 
A React Journey
A React JourneyA React Journey
A React Journey
 
Learn react-js
Learn react-jsLearn react-js
Learn react-js
 
React - Start learning today
React - Start learning today React - Start learning today
React - Start learning today
 
Techpaathshala ReactJS .pdf
Techpaathshala ReactJS .pdfTechpaathshala ReactJS .pdf
Techpaathshala ReactJS .pdf
 
REACT JS FULL COURSE | PERFECTKODE
REACT JS FULL COURSE | PERFECTKODEREACT JS FULL COURSE | PERFECTKODE
REACT JS FULL COURSE | PERFECTKODE
 
Tech Talk on ReactJS
Tech Talk on ReactJSTech Talk on ReactJS
Tech Talk on ReactJS
 
Introduction to React and MobX
Introduction to React and MobXIntroduction to React and MobX
Introduction to React and MobX
 
Maximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdfMaximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdf
 
Introduction to React for Frontend Developers
Introduction to React for Frontend DevelopersIntroduction to React for Frontend Developers
Introduction to React for Frontend Developers
 
Review on React JS
Review on React JSReview on React JS
Review on React JS
 
React & Redux in Hulu
React & Redux in HuluReact & Redux in Hulu
React & Redux in Hulu
 
Combining Angular and React Together
Combining Angular and React TogetherCombining Angular and React Together
Combining Angular and React Together
 
Skill practical javascript diy projects
Skill practical javascript diy projectsSkill practical javascript diy projects
Skill practical javascript diy projects
 
React JS part 1
React JS part 1React JS part 1
React JS part 1
 
All about React Js
All about React JsAll about React Js
All about React Js
 

Recently uploaded

List of words spelling bee contest .docx
List of words spelling bee contest .docxList of words spelling bee contest .docx
List of words spelling bee contest .docx
jaduque4
 
Maximizing Network Efficiency with Large Language Models (LLM)
Maximizing Network Efficiency with Large Language Models (LLM)Maximizing Network Efficiency with Large Language Models (LLM)
Maximizing Network Efficiency with Large Language Models (LLM)
Bangladesh Network Operators Group
 
How God led me to DTS? Through many different signs and connections that I c...
How God led me to DTS? Through many different signs and connections that  I c...How God led me to DTS? Through many different signs and connections that  I c...
How God led me to DTS? Through many different signs and connections that I c...
AshishMohan57
 
Trump fist pump t shirts Trump fist pump t shirts
Trump fist pump t shirts Trump fist pump t shirtsTrump fist pump t shirts Trump fist pump t shirts
Trump fist pump t shirts Trump fist pump t shirts
exgf28
 
Latest Deals in the Metaverse & NFT Markets.docx
Latest Deals in the Metaverse & NFT Markets.docxLatest Deals in the Metaverse & NFT Markets.docx
Latest Deals in the Metaverse & NFT Markets.docx
SFC Today
 
Rent remote desktop server mangohost .net
Rent remote desktop server mangohost .netRent remote desktop server mangohost .net
Rent remote desktop server mangohost .net
pdfsubmission50
 
202254.com香蕉影视,沙丘2在线播放,沙丘2线上看,最新电影沙丘2在线,热门电影推荐,2024最新科幻片推荐。
202254.com香蕉影视,沙丘2在线播放,沙丘2线上看,最新电影沙丘2在线,热门电影推荐,2024最新科幻片推荐。202254.com香蕉影视,沙丘2在线播放,沙丘2线上看,最新电影沙丘2在线,热门电影推荐,2024最新科幻片推荐。
202254.com香蕉影视,沙丘2在线播放,沙丘2线上看,最新电影沙丘2在线,热门电影推荐,2024最新科幻片推荐。
yilin01100
 
My President is bulletproof t shirts hoodie
My President is bulletproof t shirts hoodieMy President is bulletproof t shirts hoodie
My President is bulletproof t shirts hoodie
exgf28
 
Saint Louis University diploma
Saint Louis University diplomaSaint Louis University diploma
Saint Louis University diploma
eufdev
 
Week 1 - Pendidikan Pancasila - Gr 1.docx
Week 1 - Pendidikan Pancasila - Gr 1.docxWeek 1 - Pendidikan Pancasila - Gr 1.docx
Week 1 - Pendidikan Pancasila - Gr 1.docx
JunaManroe1
 
Free PMP Practice Exam Questions - 120 Sample Test Questions_ Answer.pdf
Free PMP Practice Exam Questions - 120 Sample Test Questions_ Answer.pdfFree PMP Practice Exam Questions - 120 Sample Test Questions_ Answer.pdf
Free PMP Practice Exam Questions - 120 Sample Test Questions_ Answer.pdf
LinhHershey
 
Open Source TCP or Netflow Log Server Using Graylog
Open Source TCP or Netflow Log Server Using GraylogOpen Source TCP or Netflow Log Server Using Graylog
Open Source TCP or Netflow Log Server Using Graylog
Bangladesh Network Operators Group
 
Enhancing seamless access using TIGERfed
Enhancing seamless access using TIGERfedEnhancing seamless access using TIGERfed
Enhancing seamless access using TIGERfed
Bangladesh Network Operators Group
 
upgrade to zabbix-7 0 como atualiza lts1
upgrade to zabbix-7 0 como atualiza lts1upgrade to zabbix-7 0 como atualiza lts1
upgrade to zabbix-7 0 como atualiza lts1
diogolsew
 
The Ultimate Guide to Web Hosting Reviews in 2024.pdf
The Ultimate Guide to Web Hosting Reviews in 2024.pdfThe Ultimate Guide to Web Hosting Reviews in 2024.pdf
The Ultimate Guide to Web Hosting Reviews in 2024.pdf
Hosting Mastery Hub
 
Team Cymru Community Services,Overview of all public services
Team Cymru Community Services,Overview of all public servicesTeam Cymru Community Services,Overview of all public services
Team Cymru Community Services,Overview of all public services
Bangladesh Network Operators Group
 
Trump Assassination Shirt Trump Assassination Shirt
Trump Assassination Shirt Trump Assassination ShirtTrump Assassination Shirt Trump Assassination Shirt
Trump Assassination Shirt Trump Assassination Shirt
exgf28
 
Do it again anti Republican shirt Do it again anti Republican shirt
Do it again anti Republican shirt Do it again anti Republican shirtDo it again anti Republican shirt Do it again anti Republican shirt
Do it again anti Republican shirt Do it again anti Republican shirt
exgf28
 
Best CSS Animation Libraries for Web Developers
Best CSS Animation Libraries for Web DevelopersBest CSS Animation Libraries for Web Developers
Best CSS Animation Libraries for Web Developers
Shrestha Raaz
 
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
QingjieDu1
 

Recently uploaded (20)

List of words spelling bee contest .docx
List of words spelling bee contest .docxList of words spelling bee contest .docx
List of words spelling bee contest .docx
 
Maximizing Network Efficiency with Large Language Models (LLM)
Maximizing Network Efficiency with Large Language Models (LLM)Maximizing Network Efficiency with Large Language Models (LLM)
Maximizing Network Efficiency with Large Language Models (LLM)
 
How God led me to DTS? Through many different signs and connections that I c...
How God led me to DTS? Through many different signs and connections that  I c...How God led me to DTS? Through many different signs and connections that  I c...
How God led me to DTS? Through many different signs and connections that I c...
 
Trump fist pump t shirts Trump fist pump t shirts
Trump fist pump t shirts Trump fist pump t shirtsTrump fist pump t shirts Trump fist pump t shirts
Trump fist pump t shirts Trump fist pump t shirts
 
Latest Deals in the Metaverse & NFT Markets.docx
Latest Deals in the Metaverse & NFT Markets.docxLatest Deals in the Metaverse & NFT Markets.docx
Latest Deals in the Metaverse & NFT Markets.docx
 
Rent remote desktop server mangohost .net
Rent remote desktop server mangohost .netRent remote desktop server mangohost .net
Rent remote desktop server mangohost .net
 
202254.com香蕉影视,沙丘2在线播放,沙丘2线上看,最新电影沙丘2在线,热门电影推荐,2024最新科幻片推荐。
202254.com香蕉影视,沙丘2在线播放,沙丘2线上看,最新电影沙丘2在线,热门电影推荐,2024最新科幻片推荐。202254.com香蕉影视,沙丘2在线播放,沙丘2线上看,最新电影沙丘2在线,热门电影推荐,2024最新科幻片推荐。
202254.com香蕉影视,沙丘2在线播放,沙丘2线上看,最新电影沙丘2在线,热门电影推荐,2024最新科幻片推荐。
 
My President is bulletproof t shirts hoodie
My President is bulletproof t shirts hoodieMy President is bulletproof t shirts hoodie
My President is bulletproof t shirts hoodie
 
Saint Louis University diploma
Saint Louis University diplomaSaint Louis University diploma
Saint Louis University diploma
 
Week 1 - Pendidikan Pancasila - Gr 1.docx
Week 1 - Pendidikan Pancasila - Gr 1.docxWeek 1 - Pendidikan Pancasila - Gr 1.docx
Week 1 - Pendidikan Pancasila - Gr 1.docx
 
Free PMP Practice Exam Questions - 120 Sample Test Questions_ Answer.pdf
Free PMP Practice Exam Questions - 120 Sample Test Questions_ Answer.pdfFree PMP Practice Exam Questions - 120 Sample Test Questions_ Answer.pdf
Free PMP Practice Exam Questions - 120 Sample Test Questions_ Answer.pdf
 
Open Source TCP or Netflow Log Server Using Graylog
Open Source TCP or Netflow Log Server Using GraylogOpen Source TCP or Netflow Log Server Using Graylog
Open Source TCP or Netflow Log Server Using Graylog
 
Enhancing seamless access using TIGERfed
Enhancing seamless access using TIGERfedEnhancing seamless access using TIGERfed
Enhancing seamless access using TIGERfed
 
upgrade to zabbix-7 0 como atualiza lts1
upgrade to zabbix-7 0 como atualiza lts1upgrade to zabbix-7 0 como atualiza lts1
upgrade to zabbix-7 0 como atualiza lts1
 
The Ultimate Guide to Web Hosting Reviews in 2024.pdf
The Ultimate Guide to Web Hosting Reviews in 2024.pdfThe Ultimate Guide to Web Hosting Reviews in 2024.pdf
The Ultimate Guide to Web Hosting Reviews in 2024.pdf
 
Team Cymru Community Services,Overview of all public services
Team Cymru Community Services,Overview of all public servicesTeam Cymru Community Services,Overview of all public services
Team Cymru Community Services,Overview of all public services
 
Trump Assassination Shirt Trump Assassination Shirt
Trump Assassination Shirt Trump Assassination ShirtTrump Assassination Shirt Trump Assassination Shirt
Trump Assassination Shirt Trump Assassination Shirt
 
Do it again anti Republican shirt Do it again anti Republican shirt
Do it again anti Republican shirt Do it again anti Republican shirtDo it again anti Republican shirt Do it again anti Republican shirt
Do it again anti Republican shirt Do it again anti Republican shirt
 
Best CSS Animation Libraries for Web Developers
Best CSS Animation Libraries for Web DevelopersBest CSS Animation Libraries for Web Developers
Best CSS Animation Libraries for Web Developers
 
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
 

React JS - Introduction