SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Introduction to React
Introduction to ReactIntroduction to React
Introduction to ReactRob Quick
 
React.js - The Dawn of Virtual DOM
React.js - The Dawn of Virtual DOMReact.js - The Dawn of Virtual DOM
React.js - The Dawn of Virtual DOMJimit Shah
 
ES6 presentation
ES6 presentationES6 presentation
ES6 presentationritika1
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Previewvaluebound
 
An introduction to React.js
An introduction to React.jsAn introduction to React.js
An introduction to React.jsEmanuele DelBono
 
Understanding react hooks
Understanding react hooksUnderstanding react hooks
Understanding react hooksSamundra khatri
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation洪 鹏发
 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.jsPagepro
 
Reactjs workshop (1)
Reactjs workshop (1)Reactjs workshop (1)
Reactjs workshop (1)Ahmed rebai
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners Varun Raj
 
Use Node.js to create a REST API
Use Node.js to create a REST APIUse Node.js to create a REST API
Use Node.js to create a REST APIFabien Vauchelles
 

Mais procurados (20)

reactJS
reactJSreactJS
reactJS
 
Introduction to React
Introduction to ReactIntroduction to React
Introduction to React
 
React Hooks
React HooksReact Hooks
React Hooks
 
React.js - The Dawn of Virtual DOM
React.js - The Dawn of Virtual DOMReact.js - The Dawn of Virtual DOM
React.js - The Dawn of Virtual DOM
 
React hooks
React hooksReact hooks
React hooks
 
ES6 presentation
ES6 presentationES6 presentation
ES6 presentation
 
Reactjs
ReactjsReactjs
Reactjs
 
React hooks
React hooksReact hooks
React hooks
 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.js
 
React js
React jsReact js
React js
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Preview
 
An introduction to React.js
An introduction to React.jsAn introduction to React.js
An introduction to React.js
 
Understanding react hooks
Understanding react hooksUnderstanding react hooks
Understanding react hooks
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
 
React JS - Introduction
React JS - IntroductionReact JS - Introduction
React JS - Introduction
 
An introduction to Vue.js
An introduction to Vue.jsAn introduction to Vue.js
An introduction to Vue.js
 
Its time to React.js
Its time to React.jsIts time to React.js
Its time to React.js
 
Reactjs workshop (1)
Reactjs workshop (1)Reactjs workshop (1)
Reactjs workshop (1)
 
Introduction to React JS for beginners
Introduction to React JS for beginners Introduction to React JS for beginners
Introduction to React JS for beginners
 
Use Node.js to create a REST API
Use Node.js to create a REST APIUse Node.js to create a REST API
Use Node.js to create a REST API
 

Destaque

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!
 
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!
 
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
 

Destaque (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...
 
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...
 
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 บท
 

Semelhante a 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
 

Semelhante a 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
ReactJsReactJs
ReactJs
 
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
 
React
ReactReact
React
 
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
 

Mais de 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!
 

Mais de 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
 

Último

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
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...Neo4j
 
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...DianaGray10
 
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...Drew Madelung
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
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 StrategiesBoston Institute of Analytics
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Principled Technologies
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 

Último (20)

ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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...
 
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...
 
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...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

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