SlideShare ist ein Scribd-Unternehmen logo
1 von 74
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why ReactJS?
Why do we need ReactJS?
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why ReactJS
Remember the Facebook newsfeeds before
2009, when each time you had to refresh the
page for new updates ??
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why ReactJS
Dispatcher
Initial Data
Real Time
Data
User Input
Store
ViewRefresh
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why ReactJS
▪ Uses DOM (Document Object Model)
▪ More memory consumption
▪ Slow performance
Drawbacks Of Traditional Data Flow
DOM
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why ReactJS
▪ Uses DOM (Document Object Model)
▪ More memory consumption
▪ Slow performance
Drawbacks Of Traditional Data Flow
DOM
DOM
DOM
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React JS
1 2
43
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React JS
101 2
43
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React JS
1 2
43
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React JS
2
43
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React JS
101 2
43
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why ReactJS?
Facebook after implementation of ReactJS became more user friendly. Each time new stories are
added, a New Stories notification appears. Clicking which will automatically refresh the news
feeds section.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why ReactJS?
Dispatcher
Initial Data
Real Time
Data
User Input
Store
View
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why ReactJS?
Dispatcher
Initial Data
Real Time
Data
User Input
Store
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Why ReactJS?
Dispatcher
Initial Data
Real Time
Data
User Input
Store
View
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda
ReactJS Fundamentals
What Is ReactJS?
Hello World Program
ReactJS Installation
Advantages Of ReactJS
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What Is ReactJS?
Now, let’s understand what is ReactJS.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What Is ReactJS?
ReactJS is an open source JavaScript
library used to develop User Interfaces.
ReactJS was introduced by Facebook on May,
2013. It was open sourced in March, 2015.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
What Is ReactJS?
It is basically the View in MVC
(Model-View-Controller)
ReactJS is concerned with the components
that utilizes the expressiveness of JavaScript
with a HTML – like template syntax.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Aspects Of ReactJS?
Virtual DOM
Data Binding
Serverside Rendering
Patch
Virtual DOM Real DOM
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Aspects Of ReactJS?
Virtual DOM
Data Binding
Serverside Rendering One Way Data Binding
Action Dispatcher Store View
Action
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Aspects Of ReactJS?
Virtual DOM
Data Binding
Serverside Rendering
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Advantages of ReactJS
Let’s find out the advantages of ReactJS.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Advantages of ReactJS
Application’s performance is increased
Used on Client as well as Server Side
Readability is improved
Easily used with other frameworks
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
ReactJS Installation
Let’s get started with ReactJS.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
ReactJS Installation
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/JSXTransformer.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
Add these <script> tags inside
<head> tag of your HTML code.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Hello World Program
Let’s start coding with ReactJS.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Hello World Program
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Hello World Program
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Hello World Program
This is how the output will look like:
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
ReactJS Fundamentals
Let’s find out about various concepts we just used in our code
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
1 2 6543 987
JSX
KeysEventsStatesComponents
RouterRefsLifecycleProps
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
2 6543 987
JSX
KeysEventsStatesComponents
RouterRefsLifecycleProps
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
JSX
✓ JSX stands for JavaScript XML
✓ Makes HTML easy to understand
✓ It is Robust
✓ Boosts up the JS performance
function intro(){
return <h1>Hello World!!</h1>;
}
JSX
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
JSX Uses
Embedding JavaScript
Specifying Attributes
JSX Nested Elements
Regular JSX var MyComponent = React.createClass({
render : function () {
return (
<div>
Hello World!!!
</div>
);
});
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
JSX Uses
Embedding JavaScript
Specifying Attributes
JSX Nested Elements
Regular JSX
var MyComponent = React.createClass( {
render : function () {
return (
<div>
<h1>Header</h1>
<h2>Content</h2>
<p>This is the content!!!</p>
</div>
);
}
});
<h1>,<h2>,<p> nested
inside <div>
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
JSX Uses
Embedding JavaScript
Specifying Attributes
JSX Nested Elements
Regular JSX
var styles={ backgroundcolor: ’cyan’};
var MyComponent=React.createClass({
render : function () {
return (
<div style={styles}>
<h1>Header</h1>
</div>
);
}
});
Adding Attributes
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
JSX Uses
Embedding JavaScript
Specifying Attributes
JSX Nested Elements
Regular JSX
var MyComponent = React.createClass({
render: function () {
return(
<div>
<h2> {2+4} </h2>
</div>
);
}
});
JavaScript Expression
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
1 2 6543 987
JSX
KeysEventsStates
Components
RouterRefsLifecycleProps
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Components
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Components
Component 1
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Components
Component 2
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Components
Component 3
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Everything in ReactJS is component1
Each Component Return a DOM Object2
It splits the UI into independent reusable pieces3
Each independent piece is processed separately4
It can refer other components in output5
It can be further split into smaller components6
Components
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Components
✓ A valid React component, accepts a single ‘props’ object argument to produce a React element.
✓ These are called “functional” as they literally are JavaScript functions.
<button onClick={this.handleClick}>Click Here</button>
Prop
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Components
Simplest way of defining a
component is through JavaScript
STATEFUL
STATELESS
<Component/>
STATELESS
<Component/>
Components in ReactJS can be in two forms:
1. Stateful: Remembers everything it does
2. Stateless: Doesn’t remembers anything it does.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Stateful Components
1
Core which stores information about components state in memory
2
Can change states
3
Contains knowledge of past, current and possible future state changes
4
Receives information from the stateless components if state change is required
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Stateless Components
1
Calculates states internal state of components
2
Never changes the state
3
Contains no knowledge of past, current and possible future state changes
4
Provides Referential Transparency i.e for same inputs will produce same output
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
1 2 6543 987
JSX
KeysEventsStatesComponents
RouterRefsLifecycle
Props
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Props
✓ Props are read-only components
✓ Whether components are declared as function or class, it must never change its props
✓ Such components are called ‘pure functions’
RULE: All React components must act like pure functions with respect to their props.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
1 2 6543 987
JSX
KeysEvents
States
Components
RouterRefsLifecycleProps
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
States
✓ Heart of react components
✓ Must be kept as simple as possible
✓ Determines components rendering and behavior
✓ Creates dynamic and interactive components
Components
Components
Components
Components
Components
Props Props
Props Props
State
State
State
State
Props
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
1 2 6543 987
JSX
KeysEventsStatesComponents
RouterRefs
Lifecycle
Props
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Lifecycle
React provides various methods which notifies when certain stage of the lifecycle occurs called Lifecycle methods
✓ These are special event handlers that are called at
various points in components life
✓ Code can be added to them to perform various tasks
✓ They are invoked in a predictable order
✓ Entire lifecycle is divided into 4 phases.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Initial Phase
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Updating Phase
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Props Change Phase
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Unmounting Phase
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
1 2 6543 987
JSX
Keys
Events
StatesComponents
RouterRefsLifecycleProps
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Events
Events are the triggered reactions to specific actions like mouse hover, mouse click, key press etc.
React
Component
Action
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Events
Events are the triggered reactions to specific actions like mouse hover, mouse click, key press etc.
React
Event
React
Component
Action
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Events
✓ Events pass event arguments to the event handler
✓ Whenever an event is specified in JSX, a synthetic event is generated
✓ This synthetic event wraps up the browsers native event and are passed as argument to the
event handler
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Event
button
button
button
Event handler
Event handler
Event handler
Event listener
Event listener
Event listener
In other UI
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Event
button
button
button
Event
handler
Event
handler
Event
handler
Event listener
Event listener
Event listener
button
button
button Event handler
Event listener
In ReactIn other UI
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
1 2 6543 987
JSX
KeysEventsStatesComponents
Router
Refs
LifecycleProps
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Refs
✓ Refs stands for references
✓ Refs are used to return references to a particular element or component returned by render().
React Element
render(){
}
<Component/>
ref
render() {
}
ref
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
➢ Managing focus, text selection or media playback
Refs Use Cases
➢ Triggering imperative animations
➢ Integrating with third-party DOM libraries
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
1 2 6543 987
JSX
Keys
EventsStatesComponents
RouterRefsLifecycleProps
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Keys
Key =101
Key=102
render()
render()
React
Elements
Keys are the elements which helps React to identify components uniquely
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Keys
Key =101
Key=103
render()
render()
React
Elements
Keys are the elements which helps React to identify components uniquely
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
1 2 6543 987
JSX
KeysEventsStatesComponents
Router
RefsLifecycleProps
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Router
✓ React Router is a powerful routing library built on top of React Framework.
✓ It helps in adding new screens and flows to the application very quickly.
✓ It keeps the URL in sync with data that’s being displayed on the web page.
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Router Advantages
Easily understands the application views.1
It can restore any state and view with simple URL.2
It handles nested views and the resolutions.3
State can be restored by the user by moving backward and forward.4
It maintains a standardized structure and behavior.5
While navigating it can do implicit CSS transitions.6
Copyright © 2017, edureka and/or its affiliates. All rights reserved.

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

reactJS
reactJSreactJS
reactJS
 
ReactJS presentation
ReactJS presentationReactJS presentation
ReactJS presentation
 
React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...
React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...
React Components Lifecycle | React Tutorial for Beginners | ReactJS Training ...
 
React JS and why it's awesome
React JS and why it's awesomeReact JS and why it's awesome
React JS and why it's awesome
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Preview
 
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
 
A Brief Introduction to React.js
A Brief Introduction to React.jsA Brief Introduction to React.js
A Brief Introduction to React.js
 
ReactJs
ReactJsReactJs
ReactJs
 
An introduction to React.js
An introduction to React.jsAn introduction to React.js
An introduction to React.js
 
Its time to React.js
Its time to React.jsIts time to React.js
Its time to React.js
 
Intro to React
Intro to ReactIntro to React
Intro to React
 
Reactjs
Reactjs Reactjs
Reactjs
 
Introduction to React JS
Introduction to React JSIntroduction to React JS
Introduction to React JS
 
ReactJS presentation.pptx
ReactJS presentation.pptxReactJS presentation.pptx
ReactJS presentation.pptx
 
React js
React jsReact js
React js
 
State management in react applications (Statecharts)
State management in react applications (Statecharts)State management in react applications (Statecharts)
State management in react applications (Statecharts)
 
WEB DEVELOPMENT USING REACT JS
 WEB DEVELOPMENT USING REACT JS WEB DEVELOPMENT USING REACT JS
WEB DEVELOPMENT USING REACT JS
 
React workshop
React workshopReact workshop
React workshop
 
React JS - A quick introduction tutorial
React JS - A quick introduction tutorialReact JS - A quick introduction tutorial
React JS - A quick introduction tutorial
 

Andere mochten auch

Importancia de las tic en la educación 3
Importancia de las tic en la educación 3Importancia de las tic en la educación 3
Importancia de las tic en la educación 3
lucerito8
 

Andere mochten auch (20)

Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
Big Data Tutorial For Beginners | What Is Big Data | Big Data Tutorial | Hado...
 
What is Artificial Intelligence | Artificial Intelligence Tutorial For Beginn...
What is Artificial Intelligence | Artificial Intelligence Tutorial For Beginn...What is Artificial Intelligence | Artificial Intelligence Tutorial For Beginn...
What is Artificial Intelligence | Artificial Intelligence Tutorial For Beginn...
 
Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...
Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...
Angular 4 Data Binding | Two Way Data Binding in Angular 4 | Angular 4 Tutori...
 
Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...
Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...
Introduction To TensorFlow | Deep Learning Using TensorFlow | TensorFlow Tuto...
 
Harry Surden - Artificial Intelligence and Law Overview
Harry Surden - Artificial Intelligence and Law OverviewHarry Surden - Artificial Intelligence and Law Overview
Harry Surden - Artificial Intelligence and Law Overview
 
Top 5 Deep Learning and AI Stories - October 6, 2017
Top 5 Deep Learning and AI Stories - October 6, 2017Top 5 Deep Learning and AI Stories - October 6, 2017
Top 5 Deep Learning and AI Stories - October 6, 2017
 
The AI Rush
The AI RushThe AI Rush
The AI Rush
 
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
AI and Machine Learning Demystified by Carol Smith at Midwest UX 2017
 
Cloud Computing Tutorial For Beginners | What is Cloud Computing | AWS Traini...
Cloud Computing Tutorial For Beginners | What is Cloud Computing | AWS Traini...Cloud Computing Tutorial For Beginners | What is Cloud Computing | AWS Traini...
Cloud Computing Tutorial For Beginners | What is Cloud Computing | AWS Traini...
 
Voice Assistants: Neuigkeiten von Alexa und Google Home
Voice Assistants: Neuigkeiten von Alexa und Google HomeVoice Assistants: Neuigkeiten von Alexa und Google Home
Voice Assistants: Neuigkeiten von Alexa und Google Home
 
IoT showdown: Amazon Echo vs Google Home
IoT showdown: Amazon Echo vs Google HomeIoT showdown: Amazon Echo vs Google Home
IoT showdown: Amazon Echo vs Google Home
 
Google Home
Google HomeGoogle Home
Google Home
 
Siri Vs Google Now
Siri Vs Google NowSiri Vs Google Now
Siri Vs Google Now
 
Oficinas de Proyectos Eficientes con Microsoft EPM 2010 (en Microsoft Uruguay)
Oficinas de Proyectos Eficientes con Microsoft EPM 2010 (en Microsoft Uruguay)Oficinas de Proyectos Eficientes con Microsoft EPM 2010 (en Microsoft Uruguay)
Oficinas de Proyectos Eficientes con Microsoft EPM 2010 (en Microsoft Uruguay)
 
Epm
EpmEpm
Epm
 
Importancia de las tic en la educación 3
Importancia de las tic en la educación 3Importancia de las tic en la educación 3
Importancia de las tic en la educación 3
 
Web social
Web socialWeb social
Web social
 
negociaciones de Epm
negociaciones de Epmnegociaciones de Epm
negociaciones de Epm
 
Presentación Juan David Echeverri EPM
Presentación Juan David Echeverri EPMPresentación Juan David Echeverri EPM
Presentación Juan David Echeverri EPM
 
What Is DevOps? | Introduction To DevOps | DevOps Tools | DevOps Tutorial | D...
What Is DevOps? | Introduction To DevOps | DevOps Tools | DevOps Tutorial | D...What Is DevOps? | Introduction To DevOps | DevOps Tools | DevOps Tutorial | D...
What Is DevOps? | Introduction To DevOps | DevOps Tools | DevOps Tutorial | D...
 

Ähnlich wie ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React Tutorial | Edureka

Ähnlich wie ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React Tutorial | Edureka (20)

React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
React Redux Tutorial | Redux Tutorial for Beginners | React Redux Training | ...
 
React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...React Interview Questions and Answers | React Tutorial | React Redux Online T...
React Interview Questions and Answers | React Tutorial | React Redux Online T...
 
What Is React | ReactJS Tutorial for Beginners | ReactJS Training | Edureka
What Is React | ReactJS Tutorial for Beginners | ReactJS Training | EdurekaWhat Is React | ReactJS Tutorial for Beginners | ReactJS Training | Edureka
What Is React | ReactJS Tutorial for Beginners | ReactJS Training | Edureka
 
Learn react by Etietop Demas
Learn react by Etietop DemasLearn react by Etietop Demas
Learn react by Etietop Demas
 
React vs Angular 4 | Angular 2 vs React | React & Angular | ReactJS Training ...
React vs Angular 4 | Angular 2 vs React | React & Angular | ReactJS Training ...React vs Angular 4 | Angular 2 vs React | React & Angular | ReactJS Training ...
React vs Angular 4 | Angular 2 vs React | React & Angular | ReactJS Training ...
 
Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...
Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...
Elasticsearch Tutorial | Getting Started with Elasticsearch | ELK Stack Train...
 
React Best Practices All Developers Should Follow in 2024.pdf
React Best Practices All Developers Should Follow in 2024.pdfReact Best Practices All Developers Should Follow in 2024.pdf
React Best Practices All Developers Should Follow in 2024.pdf
 
Java 9 New Features | Java Tutorial | What’s New in Java 9 | Java 9 Features ...
Java 9 New Features | Java Tutorial | What’s New in Java 9 | Java 9 Features ...Java 9 New Features | Java Tutorial | What’s New in Java 9 | Java 9 Features ...
Java 9 New Features | Java Tutorial | What’s New in Java 9 | Java 9 Features ...
 
what is context API and How it works in React.pptx
what is context API and How it works in React.pptxwhat is context API and How it works in React.pptx
what is context API and How it works in React.pptx
 
Angular 4 Components | Angular 4 Tutorial For Beginners | Learn Angular 4 | E...
Angular 4 Components | Angular 4 Tutorial For Beginners | Learn Angular 4 | E...Angular 4 Components | Angular 4 Tutorial For Beginners | Learn Angular 4 | E...
Angular 4 Components | Angular 4 Tutorial For Beginners | Learn Angular 4 | E...
 
slides.pptx
slides.pptxslides.pptx
slides.pptx
 
slides.pptx
slides.pptxslides.pptx
slides.pptx
 
Let's react - Meetup
Let's react - MeetupLet's react - Meetup
Let's react - Meetup
 
Creating a Facebook Clone - Part XVII - Transcript.pdf
Creating a Facebook Clone - Part XVII - Transcript.pdfCreating a Facebook Clone - Part XVII - Transcript.pdf
Creating a Facebook Clone - Part XVII - Transcript.pdf
 
How to Become ReactJS Developer?
How to Become ReactJS Developer?How to Become ReactJS Developer?
How to Become ReactJS Developer?
 
Python Django tutorial | Getting Started With Django | Web Development With D...
Python Django tutorial | Getting Started With Django | Web Development With D...Python Django tutorial | Getting Started With Django | Web Development With D...
Python Django tutorial | Getting Started With Django | Web Development With D...
 
React HOCs, Context and Observables
React HOCs, Context and ObservablesReact HOCs, Context and Observables
React HOCs, Context and Observables
 
How To Become A Big Data Engineer? Edureka
How To Become A Big Data Engineer? EdurekaHow To Become A Big Data Engineer? Edureka
How To Become A Big Data Engineer? Edureka
 
React - Start learning today
React - Start learning today React - Start learning today
React - Start learning today
 
How to create components in react js
How to create components in react jsHow to create components in react js
How to create components in react js
 

Mehr von Edureka!

Mehr von Edureka! (20)

What to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | EdurekaWhat to learn during the 21 days Lockdown | Edureka
What to learn during the 21 days Lockdown | Edureka
 
Top 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | EdurekaTop 10 Dying Programming Languages in 2020 | Edureka
Top 10 Dying Programming Languages in 2020 | Edureka
 
Top 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | EdurekaTop 5 Trending Business Intelligence Tools | Edureka
Top 5 Trending Business Intelligence Tools | Edureka
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | Edureka
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | Edureka
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | Edureka
 
Top Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | EdurekaTop Maven Interview Questions in 2020 | Edureka
Top Maven Interview Questions in 2020 | Edureka
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | Edureka
 
How to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| EdurekaHow to Deploy Java Web App in AWS| Edureka
How to Deploy Java Web App in AWS| Edureka
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | Edureka
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | Edureka
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | Edureka
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | Edureka
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | Edureka
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | Edureka
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | Edureka
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | EdurekaA star algorithm | A* Algorithm in Artificial Intelligence | Edureka
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | Edureka
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | Edureka
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Kürzlich hochgeladen (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 

ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React Tutorial | Edureka

  • 1. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Agenda
  • 2. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Why ReactJS? Why do we need ReactJS?
  • 3. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Why ReactJS Remember the Facebook newsfeeds before 2009, when each time you had to refresh the page for new updates ??
  • 4. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Why ReactJS Dispatcher Initial Data Real Time Data User Input Store ViewRefresh
  • 5. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Why ReactJS ▪ Uses DOM (Document Object Model) ▪ More memory consumption ▪ Slow performance Drawbacks Of Traditional Data Flow DOM
  • 6. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Why ReactJS ▪ Uses DOM (Document Object Model) ▪ More memory consumption ▪ Slow performance Drawbacks Of Traditional Data Flow DOM DOM DOM
  • 7. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React JS 1 2 43
  • 8. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React JS 101 2 43
  • 9. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React JS 1 2 43
  • 10. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React JS 2 43
  • 11. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React JS 101 2 43
  • 12. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Why ReactJS? Facebook after implementation of ReactJS became more user friendly. Each time new stories are added, a New Stories notification appears. Clicking which will automatically refresh the news feeds section.
  • 13. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Why ReactJS? Dispatcher Initial Data Real Time Data User Input Store View
  • 14. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Why ReactJS? Dispatcher Initial Data Real Time Data User Input Store
  • 15. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Why ReactJS? Dispatcher Initial Data Real Time Data User Input Store View
  • 16. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Agenda ReactJS Fundamentals What Is ReactJS? Hello World Program ReactJS Installation Advantages Of ReactJS
  • 17. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What Is ReactJS? Now, let’s understand what is ReactJS.
  • 18. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What Is ReactJS? ReactJS is an open source JavaScript library used to develop User Interfaces. ReactJS was introduced by Facebook on May, 2013. It was open sourced in March, 2015.
  • 19. Copyright © 2017, edureka and/or its affiliates. All rights reserved. What Is ReactJS? It is basically the View in MVC (Model-View-Controller) ReactJS is concerned with the components that utilizes the expressiveness of JavaScript with a HTML – like template syntax.
  • 20. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Aspects Of ReactJS? Virtual DOM Data Binding Serverside Rendering Patch Virtual DOM Real DOM
  • 21. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Aspects Of ReactJS? Virtual DOM Data Binding Serverside Rendering One Way Data Binding Action Dispatcher Store View Action
  • 22. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Aspects Of ReactJS? Virtual DOM Data Binding Serverside Rendering
  • 23. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Advantages of ReactJS Let’s find out the advantages of ReactJS.
  • 24. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Advantages of ReactJS Application’s performance is increased Used on Client as well as Server Side Readability is improved Easily used with other frameworks
  • 25. Copyright © 2017, edureka and/or its affiliates. All rights reserved. ReactJS Installation Let’s get started with ReactJS.
  • 26. Copyright © 2017, edureka and/or its affiliates. All rights reserved. ReactJS Installation <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/JSXTransformer.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> Add these <script> tags inside <head> tag of your HTML code.
  • 27. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Hello World Program Let’s start coding with ReactJS.
  • 28. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Hello World Program
  • 29. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Hello World Program
  • 30. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Hello World Program This is how the output will look like:
  • 31. Copyright © 2017, edureka and/or its affiliates. All rights reserved. ReactJS Fundamentals Let’s find out about various concepts we just used in our code
  • 32. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 1 2 6543 987 JSX KeysEventsStatesComponents RouterRefsLifecycleProps
  • 33. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 2 6543 987 JSX KeysEventsStatesComponents RouterRefsLifecycleProps
  • 34. Copyright © 2017, edureka and/or its affiliates. All rights reserved. JSX ✓ JSX stands for JavaScript XML ✓ Makes HTML easy to understand ✓ It is Robust ✓ Boosts up the JS performance function intro(){ return <h1>Hello World!!</h1>; } JSX
  • 35. Copyright © 2017, edureka and/or its affiliates. All rights reserved. JSX Uses Embedding JavaScript Specifying Attributes JSX Nested Elements Regular JSX var MyComponent = React.createClass({ render : function () { return ( <div> Hello World!!! </div> ); });
  • 36. Copyright © 2017, edureka and/or its affiliates. All rights reserved. JSX Uses Embedding JavaScript Specifying Attributes JSX Nested Elements Regular JSX var MyComponent = React.createClass( { render : function () { return ( <div> <h1>Header</h1> <h2>Content</h2> <p>This is the content!!!</p> </div> ); } }); <h1>,<h2>,<p> nested inside <div>
  • 37. Copyright © 2017, edureka and/or its affiliates. All rights reserved. JSX Uses Embedding JavaScript Specifying Attributes JSX Nested Elements Regular JSX var styles={ backgroundcolor: ’cyan’}; var MyComponent=React.createClass({ render : function () { return ( <div style={styles}> <h1>Header</h1> </div> ); } }); Adding Attributes
  • 38. Copyright © 2017, edureka and/or its affiliates. All rights reserved. JSX Uses Embedding JavaScript Specifying Attributes JSX Nested Elements Regular JSX var MyComponent = React.createClass({ render: function () { return( <div> <h2> {2+4} </h2> </div> ); } }); JavaScript Expression
  • 39. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 1 2 6543 987 JSX KeysEventsStates Components RouterRefsLifecycleProps
  • 40. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Components
  • 41. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Components Component 1
  • 42. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Components Component 2
  • 43. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Components Component 3
  • 44. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Everything in ReactJS is component1 Each Component Return a DOM Object2 It splits the UI into independent reusable pieces3 Each independent piece is processed separately4 It can refer other components in output5 It can be further split into smaller components6 Components
  • 45. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Components ✓ A valid React component, accepts a single ‘props’ object argument to produce a React element. ✓ These are called “functional” as they literally are JavaScript functions. <button onClick={this.handleClick}>Click Here</button> Prop
  • 46. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Components Simplest way of defining a component is through JavaScript STATEFUL STATELESS <Component/> STATELESS <Component/> Components in ReactJS can be in two forms: 1. Stateful: Remembers everything it does 2. Stateless: Doesn’t remembers anything it does.
  • 47. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Stateful Components 1 Core which stores information about components state in memory 2 Can change states 3 Contains knowledge of past, current and possible future state changes 4 Receives information from the stateless components if state change is required
  • 48. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Stateless Components 1 Calculates states internal state of components 2 Never changes the state 3 Contains no knowledge of past, current and possible future state changes 4 Provides Referential Transparency i.e for same inputs will produce same output
  • 49. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 1 2 6543 987 JSX KeysEventsStatesComponents RouterRefsLifecycle Props
  • 50. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Props ✓ Props are read-only components ✓ Whether components are declared as function or class, it must never change its props ✓ Such components are called ‘pure functions’ RULE: All React components must act like pure functions with respect to their props.
  • 51. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 1 2 6543 987 JSX KeysEvents States Components RouterRefsLifecycleProps
  • 52. Copyright © 2017, edureka and/or its affiliates. All rights reserved. States ✓ Heart of react components ✓ Must be kept as simple as possible ✓ Determines components rendering and behavior ✓ Creates dynamic and interactive components Components Components Components Components Components Props Props Props Props State State State State Props
  • 53. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 1 2 6543 987 JSX KeysEventsStatesComponents RouterRefs Lifecycle Props
  • 54. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Lifecycle React provides various methods which notifies when certain stage of the lifecycle occurs called Lifecycle methods ✓ These are special event handlers that are called at various points in components life ✓ Code can be added to them to perform various tasks ✓ They are invoked in a predictable order ✓ Entire lifecycle is divided into 4 phases.
  • 55. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Initial Phase
  • 56. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Updating Phase
  • 57. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Props Change Phase
  • 58. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Unmounting Phase
  • 59. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 1 2 6543 987 JSX Keys Events StatesComponents RouterRefsLifecycleProps
  • 60. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Events Events are the triggered reactions to specific actions like mouse hover, mouse click, key press etc. React Component Action
  • 61. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Events Events are the triggered reactions to specific actions like mouse hover, mouse click, key press etc. React Event React Component Action
  • 62. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Events ✓ Events pass event arguments to the event handler ✓ Whenever an event is specified in JSX, a synthetic event is generated ✓ This synthetic event wraps up the browsers native event and are passed as argument to the event handler
  • 63. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Event button button button Event handler Event handler Event handler Event listener Event listener Event listener In other UI
  • 64. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Event button button button Event handler Event handler Event handler Event listener Event listener Event listener button button button Event handler Event listener In ReactIn other UI
  • 65. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 1 2 6543 987 JSX KeysEventsStatesComponents Router Refs LifecycleProps
  • 66. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Refs ✓ Refs stands for references ✓ Refs are used to return references to a particular element or component returned by render(). React Element render(){ } <Component/> ref render() { } ref
  • 67. Copyright © 2017, edureka and/or its affiliates. All rights reserved. ➢ Managing focus, text selection or media playback Refs Use Cases ➢ Triggering imperative animations ➢ Integrating with third-party DOM libraries
  • 68. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 1 2 6543 987 JSX Keys EventsStatesComponents RouterRefsLifecycleProps
  • 69. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Keys Key =101 Key=102 render() render() React Elements Keys are the elements which helps React to identify components uniquely
  • 70. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Keys Key =101 Key=103 render() render() React Elements Keys are the elements which helps React to identify components uniquely
  • 71. Copyright © 2017, edureka and/or its affiliates. All rights reserved. 1 2 6543 987 JSX KeysEventsStatesComponents Router RefsLifecycleProps
  • 72. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Router ✓ React Router is a powerful routing library built on top of React Framework. ✓ It helps in adding new screens and flows to the application very quickly. ✓ It keeps the URL in sync with data that’s being displayed on the web page.
  • 73. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Router Advantages Easily understands the application views.1 It can restore any state and view with simple URL.2 It handles nested views and the resolutions.3 State can be restored by the user by moving backward and forward.4 It maintains a standardized structure and behavior.5 While navigating it can do implicit CSS transitions.6
  • 74. Copyright © 2017, edureka and/or its affiliates. All rights reserved.