SlideShare a Scribd company logo
1 of 33
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda
 What Is Artificial Intelligence ?
 What Is Machine Learning ?
 Limitations Of Machine Learning
 Deep Learning To The Rescue
 What Is Deep Learning ?
 Deep Learning Applications
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Agenda
React
Components1
State
Props
Life Cycle Of
Components5
Flow Of Stateless
& Stateful
Components
4
1 3
4
2
5
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React Components
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React Components
1
3
4
2
5
In React everything is a component
Browser
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React Components
1
3
4
2
5
All these components are integrated together to build one application
Browser
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React Components
1
3
4
2
5
We can easily update or change any of these components without disturbing the rest of the application
Browser
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
React Components – UI Tree
Single view of UI is divided into logical pieces. The starting component becomes the root and rest components
become branches and sub-branches.
1
3
4
2
5
Browser
1
4
32
UITree
5
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
ReactJS Components – Sample Code
Each component returns ONE DOM element, thus JSX elements must be wrapped in an enclosing tag
Hello World
Welcome To Edureka
3
4
2
5
class Component1 extends React.Component{
render() {
return(
<div>
<h2>Hello World</h2>
<h1>Welcome To Edureka</h1>
</div>
);
}
}
ReactDOM.render(
<Component1/>,document.getElementById('content')
);
Enclosing Tag
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Prop State
React Components
React components are controlled either by Props or States
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Props
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
{this.props.name}
Props
{this.props.name}
Props help components converse with one another.
class Body extends
React.Component({
render (){
return(
<Header name =“BOB”/>
<Footer name =“ALEX”/>
);
}
});
<Body/>
<Header/>
<Footer/>
BOB
ALEX
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
{this.props.name}
Props
{this.props.name}
Using Props we can configure the components as well
class Body extends
React.Component({
render (){
return(
<Header name =“MILLER”/>
<Footer name =“CODDY”/>
);
}
});
<Body/>
<Header/>
<Footer/>
MILLER
CODDY
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Props
Props Props
Props Props
Props
Components
Components
Components
Components
Components
Data flows downwards from the parent component
Uni-directional data flow
Props are immutable i.e pure
Can set default props
Work similar to HTML attributes1
2
3
4
5
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Props
var Body = React.createClass(
{
render: function(){
return (
<div>
<h1 > Hello World from Edureka!!</h1>
<Header name = "Bob"/>
<Header name = "Max"/>
<Footer name = "Allen"/>
</div>
);
}
}
);
Parent Component
Sending Props
ES5
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Props
var Header = React.createClass({
render: function () {
return(
<h2>Head Name: {this.props.name} </h2>
);
}
});
var Footer = React.createClass({
render: function () {
return(
<h2>Footer Name: {this.props.name}</h2>
);
}
});
ReactDOM.render(
<Body/>, document.getElementById('container')
);
Child Components
Receiving Props
ES5
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
State
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
State
Components can change, so to keep track of updates over the time we use state
Increase In
Temperature
ICE WATER
State changes because of some event
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
State
Unlike Props, component States are mutable1
Core of React Components3
Objects which control components rendering and behavior
Must be kept simple
2
4
Props Props
Props Props
Props
Components
Components
Components
Components
Components
State
State
State
State
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
State
Compone
nt
Compone
nt
Compone
nt
Component
StatefulStateless
Dumb Components Smart Components
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
State
STATEFUL
<Component/>
STATELESS
<Component/>
STATELESS
<Component/>
• Calculates states internal state of components
• Contains no knowledge of past, current and possible future
state changes
Stateless
• Core which stores information about components state in
memory
• Contains knowledge of past, current and possible future state
changes
Stateful
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Flow Of Stateless & Stateful
Components
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
class MyApp extends React.Component {
constructor(props) {
super(props);
this.state = { isLoggedIn: false }
}
receiveClick() {
this.setState({ isLoggedIn: !this.state.isLoggedIn });
}
Flow Of Stateless & Stateful Components
Parent Component
Setting Initial State
Changing State
ES6
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
render() {
return(
<div>
<h1>Hello.. I am Stateful Parent Component</h1><br/>
<p>I monitor if my user is logged in or not!!</p> <br/>
<p>Let's see what is your status : <h2><i>{this.state.isLoggedIn ?
'You Are Logged In' : 'Not Logged In'}</i></h2></p><br/>
<h2>Hi, I am Stateless Child Component</h2>
<p>I am a Logging Button</p><br/>
<p><b>I don't maintain state but I tell parent component if user clicks me
</b></p><br/>
<MyButton click={this.receiveClick.bind(this)} isLoggedIn= {this.state.isLoggedIn}/>
</div>
);
}
}
Flow Of Stateless & Stateful Components
Passing Props To Child
Component
ES6
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
const MyButton = (props) => {
return(
<div>
<button onClick={() => props.click()}>
Click TO ---> { props.isLoggedIn ? 'Log Out' : 'Log In'}
</button>
</div>
);
};
ReactDOM.render(
<MyApp />,
document.getElementById('content')
);
Flow Of Stateless & Stateful Components
Child Component
Receiving Props From
Parent Component
ES6
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Flow Of Stateless & Stateful Components
State Changes
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Component Lifecycle
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Lifecycle Phases
Lifecycle methods notifies when certain stage of
the lifecycle occurs
Code can be added to them to perform various
tasks
Provides a better control over each phase
04
01
02
03
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Lifecycle Phases
1
In this phase,
component is
about to make its
way to the DOM04
01
02
03
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Lifecycle Phases
In this phase,
component can
update & re-render
when a state change
occurs
204
01
02
03
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Lifecycle Phases
In this phase,
component can
update & re-render
when a prop change
occurs
304
01
02
03
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Lifecycle Phases
In this phase, the
component is
destroyed and
removed from DOM 404
01
02
03
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Component Lifecycle In A Glance
componentWillUnmount()
shouldComponentUpdate(nextProps,nextState)
componentWillUpdate(nextProps,nextState)
componentsWillReceiveProps(nextProps)
componentDidUpdate(prevProps, prevState)
render()
can use this.state
getInitialState()
componentWillMount()
getDefaultProps()
componentDidMount()
render()
ReactDOM.render()
ReactDOM.unmount
ComponentAtNode()
setProps()
setStates()
forceUpdate()
true
false
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
Popularity

More Related Content

What's hot

React-JS Component Life-cycle Methods
React-JS Component Life-cycle MethodsReact-JS Component Life-cycle Methods
React-JS Component Life-cycle MethodsANKUSH CHAVAN
 
ReactJS presentation
ReactJS presentationReactJS presentation
ReactJS presentationThanh Tuong
 
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...Edureka!
 
React Js Simplified
React Js SimplifiedReact Js Simplified
React Js SimplifiedSunil Yadav
 
React workshop presentation
React workshop presentationReact workshop presentation
React workshop presentationBojan Golubović
 
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...Edureka!
 
Intro To React Native
Intro To React NativeIntro To React Native
Intro To React NativeFITC
 
Lets make a better react form
Lets make a better react formLets make a better react form
Lets make a better react formYao Nien Chung
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation洪 鹏发
 
Introduction to react
Introduction to reactIntroduction to react
Introduction to reactkiranabburi
 
React state
React  stateReact  state
React stateDucat
 
React + Redux Introduction
React + Redux IntroductionReact + Redux Introduction
React + Redux IntroductionNikolaus Graf
 
React js programming concept
React js programming conceptReact js programming concept
React js programming conceptTariqul islam
 

What's hot (20)

Intro to React
Intro to ReactIntro to React
Intro to React
 
reactJS
reactJSreactJS
reactJS
 
React-JS.pptx
React-JS.pptxReact-JS.pptx
React-JS.pptx
 
React-JS Component Life-cycle Methods
React-JS Component Life-cycle MethodsReact-JS Component Life-cycle Methods
React-JS Component Life-cycle Methods
 
ReactJS presentation
ReactJS presentationReactJS presentation
ReactJS presentation
 
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...
 
React js
React jsReact js
React js
 
React Js Simplified
React Js SimplifiedReact Js Simplified
React Js Simplified
 
React workshop presentation
React workshop presentationReact workshop presentation
React workshop presentation
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
 
Reactjs
ReactjsReactjs
Reactjs
 
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
ReactJS Tutorial For Beginners | ReactJS Redux Training For Beginners | React...
 
Intro To React Native
Intro To React NativeIntro To React Native
Intro To React Native
 
Lets make a better react form
Lets make a better react formLets make a better react form
Lets make a better react form
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
 
Introduction to react
Introduction to reactIntroduction to react
Introduction to react
 
ReactJs
ReactJsReactJs
ReactJs
 
React state
React  stateReact  state
React state
 
React + Redux Introduction
React + Redux IntroductionReact + Redux Introduction
React + Redux Introduction
 
React js programming concept
React js programming conceptReact js programming concept
React js programming concept
 

Viewers also liked

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...Edureka!
 
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...Edureka!
 
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...Edureka!
 
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 Homeinovex GmbH
 
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 HomeComrade
 
Amazon alexa - building custom skills
Amazon alexa - building custom skillsAmazon alexa - building custom skills
Amazon alexa - building custom skillsAniruddha Chakrabarti
 
Amazon Alexa: our successes and fails
Amazon Alexa: our successes and failsAmazon Alexa: our successes and fails
Amazon Alexa: our successes and failsVyacheslav Lyalkin
 
โครงงานไอเอส1
โครงงานไอเอส1โครงงานไอเอส1
โครงงานไอเอส1Ocean'Funny Haha
 
[Tek] 4차산업혁명위원회 사회제도혁신위원회에 제출한 규제합리화 방안
[Tek] 4차산업혁명위원회 사회제도혁신위원회에 제출한 규제합리화 방안[Tek] 4차산업혁명위원회 사회제도혁신위원회에 제출한 규제합리화 방안
[Tek] 4차산업혁명위원회 사회제도혁신위원회에 제출한 규제합리화 방안TEK & LAW, LLP
 
Please meet Amazon Alexa and the Alexa Skills Kit
Please meet Amazon Alexa and the Alexa Skills KitPlease meet Amazon Alexa and the Alexa Skills Kit
Please meet Amazon Alexa and the Alexa Skills KitAmazon Web Services
 
Virtual personal assistant
Virtual personal assistantVirtual personal assistant
Virtual personal assistantShubham Bhalekar
 
Design in Tech Report 2017
Design in Tech Report 2017Design in Tech Report 2017
Design in Tech Report 2017John Maeda
 
โครงงานวิทยาศาสตร์เรื่อง เปลือกไข่ไล่มด
โครงงานวิทยาศาสตร์เรื่อง เปลือกไข่ไล่มดโครงงานวิทยาศาสตร์เรื่อง เปลือกไข่ไล่มด
โครงงานวิทยาศาสตร์เรื่อง เปลือกไข่ไล่มดพัน พัน
 
Docker Swarm For High Availability | Docker Tutorial | DevOps Tutorial | Edureka
Docker Swarm For High Availability | Docker Tutorial | DevOps Tutorial | EdurekaDocker Swarm For High Availability | Docker Tutorial | DevOps Tutorial | Edureka
Docker Swarm For High Availability | Docker Tutorial | DevOps Tutorial | EdurekaEdureka!
 
โครงงานการประดิษฐ์กระถางจากขวดพลาสติก
โครงงานการประดิษฐ์กระถางจากขวดพลาสติกโครงงานการประดิษฐ์กระถางจากขวดพลาสติก
โครงงานการประดิษฐ์กระถางจากขวดพลาสติกพัน พัน
 
ตัวอย่างการเขียนโครงงาน 5 บท
ตัวอย่างการเขียนโครงงาน 5 บทตัวอย่างการเขียนโครงงาน 5 บท
ตัวอย่างการเขียนโครงงาน 5 บทchaipalat
 
โครงงานวิทยาศาสตร์ เรื่อง สมุนไพรกำจัดปลวก
โครงงานวิทยาศาสตร์ เรื่อง สมุนไพรกำจัดปลวกโครงงานวิทยาศาสตร์ เรื่อง สมุนไพรกำจัดปลวก
โครงงานวิทยาศาสตร์ เรื่อง สมุนไพรกำจัดปลวกพัน พัน
 

Viewers also liked (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...
 
Siri Vs Google Now
Siri Vs Google NowSiri Vs Google Now
Siri Vs Google Now
 
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
 
Google Home
Google HomeGoogle Home
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
 
Amazon alexa - building custom skills
Amazon alexa - building custom skillsAmazon alexa - building custom skills
Amazon alexa - building custom skills
 
Amazon Alexa: our successes and fails
Amazon Alexa: our successes and failsAmazon Alexa: our successes and fails
Amazon Alexa: our successes and fails
 
โครงงานไอเอส1
โครงงานไอเอส1โครงงานไอเอส1
โครงงานไอเอส1
 
[Tek] 4차산업혁명위원회 사회제도혁신위원회에 제출한 규제합리화 방안
[Tek] 4차산업혁명위원회 사회제도혁신위원회에 제출한 규제합리화 방안[Tek] 4차산업혁명위원회 사회제도혁신위원회에 제출한 규제합리화 방안
[Tek] 4차산업혁명위원회 사회제도혁신위원회에 제출한 규제합리화 방안
 
Please meet Amazon Alexa and the Alexa Skills Kit
Please meet Amazon Alexa and the Alexa Skills KitPlease meet Amazon Alexa and the Alexa Skills Kit
Please meet Amazon Alexa and the Alexa Skills Kit
 
Virtual personal assistant
Virtual personal assistantVirtual personal assistant
Virtual personal assistant
 
Design in Tech Report 2017
Design in Tech Report 2017Design in Tech Report 2017
Design in Tech Report 2017
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
โครงงานวิทยาศาสตร์เรื่อง เปลือกไข่ไล่มด
โครงงานวิทยาศาสตร์เรื่อง เปลือกไข่ไล่มดโครงงานวิทยาศาสตร์เรื่อง เปลือกไข่ไล่มด
โครงงานวิทยาศาสตร์เรื่อง เปลือกไข่ไล่มด
 
Docker Swarm For High Availability | Docker Tutorial | DevOps Tutorial | Edureka
Docker Swarm For High Availability | Docker Tutorial | DevOps Tutorial | EdurekaDocker Swarm For High Availability | Docker Tutorial | DevOps Tutorial | Edureka
Docker Swarm For High Availability | Docker Tutorial | DevOps Tutorial | Edureka
 
โครงงานการประดิษฐ์กระถางจากขวดพลาสติก
โครงงานการประดิษฐ์กระถางจากขวดพลาสติกโครงงานการประดิษฐ์กระถางจากขวดพลาสติก
โครงงานการประดิษฐ์กระถางจากขวดพลาสติก
 
ตัวอย่างการเขียนโครงงาน 5 บท
ตัวอย่างการเขียนโครงงาน 5 บทตัวอย่างการเขียนโครงงาน 5 บท
ตัวอย่างการเขียนโครงงาน 5 บท
 
โครงงานวิทยาศาสตร์ เรื่อง สมุนไพรกำจัดปลวก
โครงงานวิทยาศาสตร์ เรื่อง สมุนไพรกำจัดปลวกโครงงานวิทยาศาสตร์ เรื่อง สมุนไพรกำจัดปลวก
โครงงานวิทยาศาสตร์ เรื่อง สมุนไพรกำจัดปลวก
 

Similar to React Components Lifecycle | React Tutorial for Beginners | ReactJS Training | Edureka

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 | ...Edureka!
 
React ES5 to ES6 | React ES5 vs ES6 | React Tutorial for Beginners | React on...
React ES5 to ES6 | React ES5 vs ES6 | React Tutorial for Beginners | React on...React ES5 to ES6 | React ES5 vs ES6 | React Tutorial for Beginners | React on...
React ES5 to ES6 | React ES5 vs ES6 | React Tutorial for Beginners | React on...Edureka!
 
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...Edureka!
 
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...Edureka!
 
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 ...Edureka!
 
Unit 2 Fundamentals of React -------.pptx
Unit 2 Fundamentals of React -------.pptxUnit 2 Fundamentals of React -------.pptx
Unit 2 Fundamentals of React -------.pptxkrishitajariwala72
 
Everything to Know About React Re-Rendering: A Comprehensive Guide
Everything to Know About React Re-Rendering: A Comprehensive GuideEverything to Know About React Re-Rendering: A Comprehensive Guide
Everything to Know About React Re-Rendering: A Comprehensive GuideBOSC Tech Labs
 
REACTJS.pdf
REACTJS.pdfREACTJS.pdf
REACTJS.pdfArthyR3
 
Sps Oslo - Introduce redux in your sp fx solution
Sps Oslo - Introduce redux in your sp fx solutionSps Oslo - Introduce redux in your sp fx solution
Sps Oslo - Introduce redux in your sp fx solutionYannick Borghmans
 
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.pptxBOSC Tech Labs
 
GITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React NativeGITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React NativeGITS Indonesia
 
React State vs Props Introduction & Differences.pptx
React State vs Props Introduction & Differences.pptxReact State vs Props Introduction & Differences.pptx
React State vs Props Introduction & Differences.pptxBOSC Tech Labs
 
Corso su ReactJS
Corso su ReactJSCorso su ReactJS
Corso su ReactJSLinkMe Srl
 
Android Architecture Components
Android Architecture ComponentsAndroid Architecture Components
Android Architecture ComponentsDarshan Parikh
 
Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Edward Burns
 
Talend Data Integration Tutorial | Talend Tutorial For Beginners | Talend Onl...
Talend Data Integration Tutorial | Talend Tutorial For Beginners | Talend Onl...Talend Data Integration Tutorial | Talend Tutorial For Beginners | Talend Onl...
Talend Data Integration Tutorial | Talend Tutorial For Beginners | Talend Onl...Edureka!
 

Similar to React Components Lifecycle | React Tutorial for Beginners | ReactJS Training | 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 ES5 to ES6 | React ES5 vs ES6 | React Tutorial for Beginners | React on...
React ES5 to ES6 | React ES5 vs ES6 | React Tutorial for Beginners | React on...React ES5 to ES6 | React ES5 vs ES6 | React Tutorial for Beginners | React on...
React ES5 to ES6 | React ES5 vs ES6 | React Tutorial for Beginners | React on...
 
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...
 
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...
 
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 ...
 
React patterns
React patternsReact patterns
React patterns
 
React advance
React advanceReact advance
React advance
 
Unit 2 Fundamentals of React -------.pptx
Unit 2 Fundamentals of React -------.pptxUnit 2 Fundamentals of React -------.pptx
Unit 2 Fundamentals of React -------.pptx
 
Everything to Know About React Re-Rendering: A Comprehensive Guide
Everything to Know About React Re-Rendering: A Comprehensive GuideEverything to Know About React Re-Rendering: A Comprehensive Guide
Everything to Know About React Re-Rendering: A Comprehensive Guide
 
REACTJS.pdf
REACTJS.pdfREACTJS.pdf
REACTJS.pdf
 
Sps Oslo - Introduce redux in your sp fx solution
Sps Oslo - Introduce redux in your sp fx solutionSps Oslo - Introduce redux in your sp fx solution
Sps Oslo - Introduce redux in your sp fx solution
 
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
 
GITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React NativeGITS Class #20: Building A Fast and Responsive UI in React Native
GITS Class #20: Building A Fast and Responsive UI in React Native
 
React State vs Props Introduction & Differences.pptx
React State vs Props Introduction & Differences.pptxReact State vs Props Introduction & Differences.pptx
React State vs Props Introduction & Differences.pptx
 
Corso su ReactJS
Corso su ReactJSCorso su ReactJS
Corso su ReactJS
 
Presentation1
Presentation1Presentation1
Presentation1
 
Android Architecture Components
Android Architecture ComponentsAndroid Architecture Components
Android Architecture Components
 
Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013Best Practices for JSF, Gameduell 2013
Best Practices for JSF, Gameduell 2013
 
React & Flux Workshop
React & Flux WorkshopReact & Flux Workshop
React & Flux Workshop
 
Talend Data Integration Tutorial | Talend Tutorial For Beginners | Talend Onl...
Talend Data Integration Tutorial | Talend Tutorial For Beginners | Talend Onl...Talend Data Integration Tutorial | Talend Tutorial For Beginners | Talend Onl...
Talend Data Integration Tutorial | Talend Tutorial For Beginners | Talend Onl...
 

More from Edureka!

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 | EdurekaEdureka!
 
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 | EdurekaEdureka!
 
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 | EdurekaEdureka!
 
Tableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaTableau Tutorial for Data Science | Edureka
Tableau Tutorial for Data Science | EdurekaEdureka!
 
Python Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaPython Programming Tutorial | Edureka
Python Programming Tutorial | EdurekaEdureka!
 
Top 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaTop 5 PMP Certifications | Edureka
Top 5 PMP Certifications | EdurekaEdureka!
 
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 | EdurekaEdureka!
 
Linux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaLinux Mint Tutorial | Edureka
Linux Mint Tutorial | EdurekaEdureka!
 
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| EdurekaEdureka!
 
Importance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaImportance of Digital Marketing | Edureka
Importance of Digital Marketing | EdurekaEdureka!
 
RPA in 2020 | Edureka
RPA in 2020 | EdurekaRPA in 2020 | Edureka
RPA in 2020 | EdurekaEdureka!
 
Email Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEmail Notifications in Jenkins | Edureka
Email Notifications in Jenkins | EdurekaEdureka!
 
EA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEA Algorithm in Machine Learning | Edureka
EA Algorithm in Machine Learning | EdurekaEdureka!
 
Cognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaCognitive AI Tutorial | Edureka
Cognitive AI Tutorial | EdurekaEdureka!
 
AWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaAWS Cloud Practitioner Tutorial | Edureka
AWS Cloud Practitioner Tutorial | EdurekaEdureka!
 
Blue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaBlue Prism Top Interview Questions | Edureka
Blue Prism Top Interview Questions | EdurekaEdureka!
 
Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka Big Data on AWS Tutorial | Edureka
Big Data on AWS Tutorial | Edureka 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 | EdurekaEdureka!
 
Kubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaKubernetes Installation on Ubuntu | Edureka
Kubernetes Installation on Ubuntu | EdurekaEdureka!
 
Introduction to DevOps | Edureka
Introduction to DevOps | EdurekaIntroduction to DevOps | Edureka
Introduction to DevOps | EdurekaEdureka!
 

More from 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
 

Recently uploaded

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesKari Kakkonen
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 

Recently uploaded (20)

Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Testing tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examplesTesting tools and AI - ideas what to try with some tool examples
Testing tools and AI - ideas what to try with some tool examples
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 

React Components Lifecycle | React Tutorial for Beginners | ReactJS Training | Edureka

  • 1. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Agenda  What Is Artificial Intelligence ?  What Is Machine Learning ?  Limitations Of Machine Learning  Deep Learning To The Rescue  What Is Deep Learning ?  Deep Learning Applications
  • 2. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Agenda React Components1 State Props Life Cycle Of Components5 Flow Of Stateless & Stateful Components 4 1 3 4 2 5
  • 3. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React Components
  • 4. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React Components 1 3 4 2 5 In React everything is a component Browser
  • 5. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React Components 1 3 4 2 5 All these components are integrated together to build one application Browser
  • 6. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React Components 1 3 4 2 5 We can easily update or change any of these components without disturbing the rest of the application Browser
  • 7. Copyright © 2017, edureka and/or its affiliates. All rights reserved. React Components – UI Tree Single view of UI is divided into logical pieces. The starting component becomes the root and rest components become branches and sub-branches. 1 3 4 2 5 Browser 1 4 32 UITree 5
  • 8. Copyright © 2017, edureka and/or its affiliates. All rights reserved. ReactJS Components – Sample Code Each component returns ONE DOM element, thus JSX elements must be wrapped in an enclosing tag Hello World Welcome To Edureka 3 4 2 5 class Component1 extends React.Component{ render() { return( <div> <h2>Hello World</h2> <h1>Welcome To Edureka</h1> </div> ); } } ReactDOM.render( <Component1/>,document.getElementById('content') ); Enclosing Tag
  • 9. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Prop State React Components React components are controlled either by Props or States
  • 10. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Props
  • 11. Copyright © 2017, edureka and/or its affiliates. All rights reserved. {this.props.name} Props {this.props.name} Props help components converse with one another. class Body extends React.Component({ render (){ return( <Header name =“BOB”/> <Footer name =“ALEX”/> ); } }); <Body/> <Header/> <Footer/> BOB ALEX
  • 12. Copyright © 2017, edureka and/or its affiliates. All rights reserved. {this.props.name} Props {this.props.name} Using Props we can configure the components as well class Body extends React.Component({ render (){ return( <Header name =“MILLER”/> <Footer name =“CODDY”/> ); } }); <Body/> <Header/> <Footer/> MILLER CODDY
  • 13. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Props Props Props Props Props Props Components Components Components Components Components Data flows downwards from the parent component Uni-directional data flow Props are immutable i.e pure Can set default props Work similar to HTML attributes1 2 3 4 5
  • 14. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Props var Body = React.createClass( { render: function(){ return ( <div> <h1 > Hello World from Edureka!!</h1> <Header name = "Bob"/> <Header name = "Max"/> <Footer name = "Allen"/> </div> ); } } ); Parent Component Sending Props ES5
  • 15. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Props var Header = React.createClass({ render: function () { return( <h2>Head Name: {this.props.name} </h2> ); } }); var Footer = React.createClass({ render: function () { return( <h2>Footer Name: {this.props.name}</h2> ); } }); ReactDOM.render( <Body/>, document.getElementById('container') ); Child Components Receiving Props ES5
  • 16. Copyright © 2017, edureka and/or its affiliates. All rights reserved. State
  • 17. Copyright © 2017, edureka and/or its affiliates. All rights reserved. State Components can change, so to keep track of updates over the time we use state Increase In Temperature ICE WATER State changes because of some event
  • 18. Copyright © 2017, edureka and/or its affiliates. All rights reserved. State Unlike Props, component States are mutable1 Core of React Components3 Objects which control components rendering and behavior Must be kept simple 2 4 Props Props Props Props Props Components Components Components Components Components State State State State
  • 19. Copyright © 2017, edureka and/or its affiliates. All rights reserved. State Compone nt Compone nt Compone nt Component StatefulStateless Dumb Components Smart Components
  • 20. Copyright © 2017, edureka and/or its affiliates. All rights reserved. State STATEFUL <Component/> STATELESS <Component/> STATELESS <Component/> • Calculates states internal state of components • Contains no knowledge of past, current and possible future state changes Stateless • Core which stores information about components state in memory • Contains knowledge of past, current and possible future state changes Stateful
  • 21. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Flow Of Stateless & Stateful Components
  • 22. Copyright © 2017, edureka and/or its affiliates. All rights reserved. class MyApp extends React.Component { constructor(props) { super(props); this.state = { isLoggedIn: false } } receiveClick() { this.setState({ isLoggedIn: !this.state.isLoggedIn }); } Flow Of Stateless & Stateful Components Parent Component Setting Initial State Changing State ES6
  • 23. Copyright © 2017, edureka and/or its affiliates. All rights reserved. render() { return( <div> <h1>Hello.. I am Stateful Parent Component</h1><br/> <p>I monitor if my user is logged in or not!!</p> <br/> <p>Let's see what is your status : <h2><i>{this.state.isLoggedIn ? 'You Are Logged In' : 'Not Logged In'}</i></h2></p><br/> <h2>Hi, I am Stateless Child Component</h2> <p>I am a Logging Button</p><br/> <p><b>I don't maintain state but I tell parent component if user clicks me </b></p><br/> <MyButton click={this.receiveClick.bind(this)} isLoggedIn= {this.state.isLoggedIn}/> </div> ); } } Flow Of Stateless & Stateful Components Passing Props To Child Component ES6
  • 24. Copyright © 2017, edureka and/or its affiliates. All rights reserved. const MyButton = (props) => { return( <div> <button onClick={() => props.click()}> Click TO ---> { props.isLoggedIn ? 'Log Out' : 'Log In'} </button> </div> ); }; ReactDOM.render( <MyApp />, document.getElementById('content') ); Flow Of Stateless & Stateful Components Child Component Receiving Props From Parent Component ES6
  • 25. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Flow Of Stateless & Stateful Components State Changes
  • 26. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Component Lifecycle
  • 27. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Lifecycle Phases Lifecycle methods notifies when certain stage of the lifecycle occurs Code can be added to them to perform various tasks Provides a better control over each phase 04 01 02 03
  • 28. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Lifecycle Phases 1 In this phase, component is about to make its way to the DOM04 01 02 03
  • 29. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Lifecycle Phases In this phase, component can update & re-render when a state change occurs 204 01 02 03
  • 30. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Lifecycle Phases In this phase, component can update & re-render when a prop change occurs 304 01 02 03
  • 31. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Lifecycle Phases In this phase, the component is destroyed and removed from DOM 404 01 02 03
  • 32. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Component Lifecycle In A Glance componentWillUnmount() shouldComponentUpdate(nextProps,nextState) componentWillUpdate(nextProps,nextState) componentsWillReceiveProps(nextProps) componentDidUpdate(prevProps, prevState) render() can use this.state getInitialState() componentWillMount() getDefaultProps() componentDidMount() render() ReactDOM.render() ReactDOM.unmount ComponentAtNode() setProps() setStates() forceUpdate() true false
  • 33. Copyright © 2017, edureka and/or its affiliates. All rights reserved. Popularity