SlideShare a Scribd company logo
WEEKLY PRESENTATION
DURING TRAINING PROGRAM
- Devang Garach
devanggarach.rao@gmail.com
WEEK-5
Information Technology
AGENDA
What is React?
Advantages & Disadvantages of React
What is DOM, Virtual DOM and How React use it?
React JSX and ES6
Installation of React and creation of application, first app.
Get start with First-Project
React Components
ReactJS Lifecycle and Methods
State and Props in React
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
What is React?
React is an open-source, front end, JavaScript library for building user
interfaces or UI components.
It is maintained by Facebook and a community of individual developers and
companies.
React can be used as a base in the development of single-page or mobile
applications.
Efficiently updates and renders the right components when your data
changes
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
What is React? (Continue...)
Why was React developed?
● Complexity of two-way data binding
● Bad UX from using “Cascading Updates” of DOM tree
● A lot of data on page changing over time
● Shift from MVC mentality.
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
What is React? (Continue...)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
(source : airbnb.co.in)
Advantages & Disadvantages of React
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Advantages Disadvantages
Easy to learn, easy to use Higher pace of development
Reusable components Poor documentation
The Virtual DOM React JS is only a view layer
Great Developer Tools We have to learn JSX
Scope of testing the codes, easy to test & debug.
Faster display of great numbers of components
What is DOM, Virtual DOM and How React use it
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
DOM (Document Object Model)
What is DOM, Virtual DOM and How React use it
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Virtual DOM Example
Something changes in components
React JSX and ES6
What is JSX?
JSX stands for JavaScript XML.
JSX allows us to write HTML in React.
JSX makes it easier to write and add HTML in React.
(It is not necessary to use JSX, but JSX makes it easier to write React
applications)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
const myelement = <h1>JSX is too easy!</h1>;
ReactDOM.render(myelement, document.getElementById('root'));
React JSX and ES6
What is ES6?
ES6 stands for ECMAScript was the second major version of JavaScript
ECMAScript 6 is also known as ES6 and ECMAScript 2015,
New Features introduced in ES6
● The let and const keyword
● JavaScript Arrow Functions
● JavaScript For/of
● JavaScript Classes
● JavaScript Promises
● Many more...
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Installation of React and creation of application, first app.
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Before we get started, react installation or to create application, we require
to learn npm and its commands.
What is NPM?
NPM stands for Node Package Manager
npm is the package manager for the Node JavaScript platform. It puts
modules in place so that node can find them, and manages dependency
conflicts intelligently. Most commonly, it is used to publish, discover, install,
and develop node programs.
Installation of React and creation of application, first app.
(Continue...)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Before using NPM commands we have to install, node.
To get Download, nodejs from official website: https://nodejs.org/en/download/
Nodejs is supported all major OS, like Windows, Mac or Linux.
Once nodejs is installed in you OS. Verify the version of node js and npm.
> node -v
> npm -v
Installation of React and creation of application, first app.
(Continue...)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
To create an React Application we use npm command
> npm install -g create-react-app
> cd <my-directory>
> npx create-react-app <project-name>
Once it has been created, we can start our application.
> npm start
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Installation of React and creation of application, first app.
(Continue...)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
<= File Structure after created react application
Get start with First-Project
After we go inside of our project directory
> npm start
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
<= File Structure of React JS Project first-app
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
ReactJS Components
Before we start with Lifecycle and methods we have to learn more about React
Components.
Components are independent and reusable bits of code. They serve the same
purpose as JavaScript functions, but work in isolation and return HTML via a
render() function. Components come in two types, Class components and Function
components.
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Function Component
CommonFunctionalComponent.js
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
App.js File
Importing Function Component
into App.js
<CommonFunctionalComponent/>
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Class Component
CommonClassComponent.js
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
App.js File
Importing Function Component
and Class Component, both into
App.js
<CommonFunctionalComponent/>
<CommonClassComponent/>
ReactJS Lifecycle and Methods
Each component in React has a lifecycle which we can monitor and manipulate
during its Four phases.
The Four phases are: Mounting, Updating, Unmounting and Error Handling.
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
ReactJS Lifecycle and Methods (Continue...)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Phases Description
Mounting When an instance of a component is being created or inserted into the DOM
Constructor()
static getDerivedStateFromProps()
render()
componentDidMount()
Updating When a component is being re-rendered as a result of changes to either its props or state
static getDerivedStateFromProps()
shouldComponentUpdate()
Render()
getSnapshotBeforeUpdate()
componentDidUpdate()
ReactJS Lifecycle and Methods (Continue...)
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Phases Description
UnMounting When a component is being removed from the DOM
componentWillUnmount()
Error Handling When there is an error during rendering. In a lifecycle method, or in the constructor of any child
component.
static getDerivedStateFromError() and ComponentDidCatch()
State and Props in React
React props:
Props are arguments passed into React components.
Props are passed to components via HTML attributes.
React state:
React components has a built-in state object.
The state object is where you store property values that belongs to the
component.
When the state object changes, the component re-renders.
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
State and Props in React (Continue...)
Props example: (source: w3school.com)
import React from 'react';
import ReactDOM from 'react-dom';
class Car extends React.Component
{
render(){
return <h2>I am a {this.props.brand}!</h2>
}
}
const myelement = <Car brand="Ford" />;
ReactDOM.render(myelement, document.getElementById('root'));
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
State and Props in React (Continue...)
State example: (source: w3school.com)
import React from 'react';
import ReactDOM from 'react-dom';
class Car extends React.Component{
constructor(props){
super(props);
this.state = {
brand: "Ford",
model: "Mustang",
color: "red",
year: 1964 };
}
render(){
return(<div><h1>My {this.state.brand}</h1>
<p>It is a {this.state.color} {this.state.model} from {this.state.year}. </p>
</div>);
} }
ReactDOM.render(<Car />, document.getElementById('root'));
Information Technology
DURING TRAINING PROGRAM - WEEKLY PRESENTATION
Information Technology
Thank You.
- Devang Garach
devanggarach.rao@gmail.com

More Related Content

What's hot

React Native Workshop
React Native WorkshopReact Native Workshop
React Native Workshop
Amazon Web Services
 
React js programming concept
React js programming conceptReact js programming concept
React js programming concept
Tariqul islam
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
洪 鹏发
 
React js
React jsReact js
React js
Rajesh Kolla
 
React workshop presentation
React workshop presentationReact workshop presentation
React workshop presentation
Bojan Golubović
 
reactJS
reactJSreactJS
reactJS
Syam Santhosh
 
How native is React Native? | React Native vs Native App Development
How native is React Native? | React Native vs Native App DevelopmentHow native is React Native? | React Native vs Native App Development
How native is React Native? | React Native vs Native App Development
Devathon
 
React js basics
React js basicsReact js basics
React js basics
Maulik Shah
 
React workshop
React workshopReact workshop
React workshop
Imran Sayed
 
Getting started with Next.js
Getting started with Next.jsGetting started with Next.js
Getting started with Next.js
Gökhan Sarı
 
React js - The Core Concepts
React js - The Core ConceptsReact js - The Core Concepts
React js - The Core Concepts
Divyang Bhambhani
 
React and redux
React and reduxReact and redux
React and redux
Mystic Coders, LLC
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Preview
valuebound
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
Hoang Long
 
An Introduction to ReactJS
An Introduction to ReactJSAn Introduction to ReactJS
An Introduction to ReactJS
All Things Open
 
Introduction to react js
Introduction to react jsIntroduction to react js
Introduction to react js
Aeshan Wijetunge
 
ReactJS presentation.pptx
ReactJS presentation.pptxReactJS presentation.pptx
ReactJS presentation.pptx
DivyanshGupta922023
 
FRONT-END WEB DEVELOPMENT WITH REACTJS
FRONT-END WEB DEVELOPMENT WITH REACTJSFRONT-END WEB DEVELOPMENT WITH REACTJS
FRONT-END WEB DEVELOPMENT WITH REACTJS
Tran Phong Phu
 
React js
React jsReact js
A Brief Introduction to React.js
A Brief Introduction to React.jsA Brief Introduction to React.js
A Brief Introduction to React.js
Doug Neiner
 

What's hot (20)

React Native Workshop
React Native WorkshopReact Native Workshop
React Native Workshop
 
React js programming concept
React js programming conceptReact js programming concept
React js programming concept
 
[Final] ReactJS presentation
[Final] ReactJS presentation[Final] ReactJS presentation
[Final] ReactJS presentation
 
React js
React jsReact js
React js
 
React workshop presentation
React workshop presentationReact workshop presentation
React workshop presentation
 
reactJS
reactJSreactJS
reactJS
 
How native is React Native? | React Native vs Native App Development
How native is React Native? | React Native vs Native App DevelopmentHow native is React Native? | React Native vs Native App Development
How native is React Native? | React Native vs Native App Development
 
React js basics
React js basicsReact js basics
React js basics
 
React workshop
React workshopReact workshop
React workshop
 
Getting started with Next.js
Getting started with Next.jsGetting started with Next.js
Getting started with Next.js
 
React js - The Core Concepts
React js - The Core ConceptsReact js - The Core Concepts
React js - The Core Concepts
 
React and redux
React and reduxReact and redux
React and redux
 
React JS: A Secret Preview
React JS: A Secret PreviewReact JS: A Secret Preview
React JS: A Secret Preview
 
Introduction to ReactJS
Introduction to ReactJSIntroduction to ReactJS
Introduction to ReactJS
 
An Introduction to ReactJS
An Introduction to ReactJSAn Introduction to ReactJS
An Introduction to ReactJS
 
Introduction to react js
Introduction to react jsIntroduction to react js
Introduction to react js
 
ReactJS presentation.pptx
ReactJS presentation.pptxReactJS presentation.pptx
ReactJS presentation.pptx
 
FRONT-END WEB DEVELOPMENT WITH REACTJS
FRONT-END WEB DEVELOPMENT WITH REACTJSFRONT-END WEB DEVELOPMENT WITH REACTJS
FRONT-END WEB DEVELOPMENT WITH REACTJS
 
React js
React jsReact js
React js
 
A Brief Introduction to React.js
A Brief Introduction to React.jsA Brief Introduction to React.js
A Brief Introduction to React.js
 

Similar to Overview of React.JS - Internship Presentation - Week 5

FRONTEND DEVELOPMENT WITH REACT.JS
FRONTEND DEVELOPMENT WITH REACT.JSFRONTEND DEVELOPMENT WITH REACT.JS
FRONTEND DEVELOPMENT WITH REACT.JS
IRJET Journal
 
React Native +Redux + ES6 (Updated)
React Native +Redux + ES6 (Updated)React Native +Redux + ES6 (Updated)
React Native +Redux + ES6 (Updated)
Chiew Carol
 
Reactjs
ReactjsReactjs
React_Complete.pptx
React_Complete.pptxReact_Complete.pptx
React_Complete.pptx
kamalakantas
 
Improve your Web Development using Visual Studio 2010
Improve your Web Development using Visual Studio 2010Improve your Web Development using Visual Studio 2010
Improve your Web Development using Visual Studio 2010
Suthep Sangvirotjanaphat
 
Build web apps with react js
Build web apps with react jsBuild web apps with react js
Build web apps with react js
dhanushkacnd
 
How create react app help in creating a new react applications
How create react app help in creating a new react applications How create react app help in creating a new react applications
How create react app help in creating a new react applications
Concetto Labs
 
Fundamental concepts of react js
Fundamental concepts of react jsFundamental concepts of react js
Fundamental concepts of react js
StephieJohn
 
Tech Talk on ReactJS
Tech Talk on ReactJSTech Talk on ReactJS
Tech Talk on ReactJS
Atlogys Technical Consulting
 
React Native for multi-platform mobile applications
React Native for multi-platform mobile applicationsReact Native for multi-platform mobile applications
React Native for multi-platform mobile applications
Matteo Manchi
 
How To Integrate Native Android App With React Native.
How To Integrate Native Android App With React Native.How To Integrate Native Android App With React Native.
How To Integrate Native Android App With React Native.
Techugo
 
Web summit.pptx
Web summit.pptxWeb summit.pptx
Web summit.pptx
171SagnikRoy
 
Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]
GDSC UofT Mississauga
 
React - Start learning today
React - Start learning today React - Start learning today
React - Start learning today
Nitin Tyagi
 
learning react
learning reactlearning react
learning react
Eueung Mulyana
 
NEXT.JS
NEXT.JSNEXT.JS
React django
React djangoReact django
React django
Heber Silva
 
TDC São Paulo - React presentation
TDC São Paulo - React presentationTDC São Paulo - React presentation
TDC São Paulo - React presentation
Danillo Corvalan
 
Abhishek_Kumar
Abhishek_KumarAbhishek_Kumar
Abhishek_Kumar
Abhishek Kumar
 
Struts & hibernate ppt
Struts & hibernate pptStruts & hibernate ppt
Struts & hibernate ppt
Pankaj Patel
 

Similar to Overview of React.JS - Internship Presentation - Week 5 (20)

FRONTEND DEVELOPMENT WITH REACT.JS
FRONTEND DEVELOPMENT WITH REACT.JSFRONTEND DEVELOPMENT WITH REACT.JS
FRONTEND DEVELOPMENT WITH REACT.JS
 
React Native +Redux + ES6 (Updated)
React Native +Redux + ES6 (Updated)React Native +Redux + ES6 (Updated)
React Native +Redux + ES6 (Updated)
 
Reactjs
ReactjsReactjs
Reactjs
 
React_Complete.pptx
React_Complete.pptxReact_Complete.pptx
React_Complete.pptx
 
Improve your Web Development using Visual Studio 2010
Improve your Web Development using Visual Studio 2010Improve your Web Development using Visual Studio 2010
Improve your Web Development using Visual Studio 2010
 
Build web apps with react js
Build web apps with react jsBuild web apps with react js
Build web apps with react js
 
How create react app help in creating a new react applications
How create react app help in creating a new react applications How create react app help in creating a new react applications
How create react app help in creating a new react applications
 
Fundamental concepts of react js
Fundamental concepts of react jsFundamental concepts of react js
Fundamental concepts of react js
 
Tech Talk on ReactJS
Tech Talk on ReactJSTech Talk on ReactJS
Tech Talk on ReactJS
 
React Native for multi-platform mobile applications
React Native for multi-platform mobile applicationsReact Native for multi-platform mobile applications
React Native for multi-platform mobile applications
 
How To Integrate Native Android App With React Native.
How To Integrate Native Android App With React Native.How To Integrate Native Android App With React Native.
How To Integrate Native Android App With React Native.
 
Web summit.pptx
Web summit.pptxWeb summit.pptx
Web summit.pptx
 
Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]Full Stack React Workshop [CSSC x GDSC]
Full Stack React Workshop [CSSC x GDSC]
 
React - Start learning today
React - Start learning today React - Start learning today
React - Start learning today
 
learning react
learning reactlearning react
learning react
 
NEXT.JS
NEXT.JSNEXT.JS
NEXT.JS
 
React django
React djangoReact django
React django
 
TDC São Paulo - React presentation
TDC São Paulo - React presentationTDC São Paulo - React presentation
TDC São Paulo - React presentation
 
Abhishek_Kumar
Abhishek_KumarAbhishek_Kumar
Abhishek_Kumar
 
Struts & hibernate ppt
Struts & hibernate pptStruts & hibernate ppt
Struts & hibernate ppt
 

More from Devang Garach

AWS Concepts - Internship Presentation - week 10
AWS Concepts - Internship Presentation - week 10AWS Concepts - Internship Presentation - week 10
AWS Concepts - Internship Presentation - week 10
Devang Garach
 
A glimpse inside of SEO - Internship Presentation - week 9
A glimpse inside of SEO - Internship Presentation - week 9A glimpse inside of SEO - Internship Presentation - week 9
A glimpse inside of SEO - Internship Presentation - week 9
Devang Garach
 
Machine Learning and its types - Internship Presentation - week 8
Machine Learning and its types - Internship Presentation - week 8Machine Learning and its types - Internship Presentation - week 8
Machine Learning and its types - Internship Presentation - week 8
Devang Garach
 
Fundamental of Node.JS - Internship Presentation - Week7
Fundamental of Node.JS - Internship Presentation - Week7Fundamental of Node.JS - Internship Presentation - Week7
Fundamental of Node.JS - Internship Presentation - Week7
Devang Garach
 
Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6
Devang Garach
 
Brief Introduction on JavaScript - Internship Presentation - Week4
Brief Introduction on JavaScript - Internship Presentation - Week4Brief Introduction on JavaScript - Internship Presentation - Week4
Brief Introduction on JavaScript - Internship Presentation - Week4
Devang Garach
 
Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3
Devang Garach
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and Github
Devang Garach
 
M.C.A. Internship Project Presentation - Devang Garach [191823011]
M.C.A. Internship Project Presentation - Devang Garach [191823011]M.C.A. Internship Project Presentation - Devang Garach [191823011]
M.C.A. Internship Project Presentation - Devang Garach [191823011]
Devang Garach
 

More from Devang Garach (9)

AWS Concepts - Internship Presentation - week 10
AWS Concepts - Internship Presentation - week 10AWS Concepts - Internship Presentation - week 10
AWS Concepts - Internship Presentation - week 10
 
A glimpse inside of SEO - Internship Presentation - week 9
A glimpse inside of SEO - Internship Presentation - week 9A glimpse inside of SEO - Internship Presentation - week 9
A glimpse inside of SEO - Internship Presentation - week 9
 
Machine Learning and its types - Internship Presentation - week 8
Machine Learning and its types - Internship Presentation - week 8Machine Learning and its types - Internship Presentation - week 8
Machine Learning and its types - Internship Presentation - week 8
 
Fundamental of Node.JS - Internship Presentation - Week7
Fundamental of Node.JS - Internship Presentation - Week7Fundamental of Node.JS - Internship Presentation - Week7
Fundamental of Node.JS - Internship Presentation - Week7
 
Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6Advanced JavaScript - Internship Presentation - Week6
Advanced JavaScript - Internship Presentation - Week6
 
Brief Introduction on JavaScript - Internship Presentation - Week4
Brief Introduction on JavaScript - Internship Presentation - Week4Brief Introduction on JavaScript - Internship Presentation - Week4
Brief Introduction on JavaScript - Internship Presentation - Week4
 
Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3Intro to HTML, CSS & JS - Internship Presentation Week-3
Intro to HTML, CSS & JS - Internship Presentation Week-3
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and Github
 
M.C.A. Internship Project Presentation - Devang Garach [191823011]
M.C.A. Internship Project Presentation - Devang Garach [191823011]M.C.A. Internship Project Presentation - Devang Garach [191823011]
M.C.A. Internship Project Presentation - Devang Garach [191823011]
 

Recently uploaded

PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
AyyanKhan40
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
Kavitha Krishnan
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 

Recently uploaded (20)

PIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf IslamabadPIMS Job Advertisement 2024.pdf Islamabad
PIMS Job Advertisement 2024.pdf Islamabad
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Assessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptxAssessment and Planning in Educational technology.pptx
Assessment and Planning in Educational technology.pptx
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 

Overview of React.JS - Internship Presentation - Week 5

  • 1. WEEKLY PRESENTATION DURING TRAINING PROGRAM - Devang Garach devanggarach.rao@gmail.com WEEK-5 Information Technology
  • 2. AGENDA What is React? Advantages & Disadvantages of React What is DOM, Virtual DOM and How React use it? React JSX and ES6 Installation of React and creation of application, first app. Get start with First-Project React Components ReactJS Lifecycle and Methods State and Props in React Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 3. What is React? React is an open-source, front end, JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies. React can be used as a base in the development of single-page or mobile applications. Efficiently updates and renders the right components when your data changes Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 4. What is React? (Continue...) Why was React developed? ● Complexity of two-way data binding ● Bad UX from using “Cascading Updates” of DOM tree ● A lot of data on page changing over time ● Shift from MVC mentality. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 5. What is React? (Continue...) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION (source : airbnb.co.in)
  • 6. Advantages & Disadvantages of React Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Advantages Disadvantages Easy to learn, easy to use Higher pace of development Reusable components Poor documentation The Virtual DOM React JS is only a view layer Great Developer Tools We have to learn JSX Scope of testing the codes, easy to test & debug. Faster display of great numbers of components
  • 7. What is DOM, Virtual DOM and How React use it Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION DOM (Document Object Model)
  • 8. What is DOM, Virtual DOM and How React use it Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Virtual DOM Example Something changes in components
  • 9. React JSX and ES6 What is JSX? JSX stands for JavaScript XML. JSX allows us to write HTML in React. JSX makes it easier to write and add HTML in React. (It is not necessary to use JSX, but JSX makes it easier to write React applications) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION const myelement = <h1>JSX is too easy!</h1>; ReactDOM.render(myelement, document.getElementById('root'));
  • 10. React JSX and ES6 What is ES6? ES6 stands for ECMAScript was the second major version of JavaScript ECMAScript 6 is also known as ES6 and ECMAScript 2015, New Features introduced in ES6 ● The let and const keyword ● JavaScript Arrow Functions ● JavaScript For/of ● JavaScript Classes ● JavaScript Promises ● Many more... Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 11. Installation of React and creation of application, first app. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Before we get started, react installation or to create application, we require to learn npm and its commands. What is NPM? NPM stands for Node Package Manager npm is the package manager for the Node JavaScript platform. It puts modules in place so that node can find them, and manages dependency conflicts intelligently. Most commonly, it is used to publish, discover, install, and develop node programs.
  • 12. Installation of React and creation of application, first app. (Continue...) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Before using NPM commands we have to install, node. To get Download, nodejs from official website: https://nodejs.org/en/download/ Nodejs is supported all major OS, like Windows, Mac or Linux. Once nodejs is installed in you OS. Verify the version of node js and npm. > node -v > npm -v
  • 13. Installation of React and creation of application, first app. (Continue...) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION To create an React Application we use npm command > npm install -g create-react-app > cd <my-directory> > npx create-react-app <project-name> Once it has been created, we can start our application. > npm start
  • 14. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 15. Installation of React and creation of application, first app. (Continue...) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION <= File Structure after created react application
  • 16. Get start with First-Project After we go inside of our project directory > npm start Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 17. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 18. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION <= File Structure of React JS Project first-app
  • 19. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 20. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 21. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 22. ReactJS Components Before we start with Lifecycle and methods we have to learn more about React Components. Components are independent and reusable bits of code. They serve the same purpose as JavaScript functions, but work in isolation and return HTML via a render() function. Components come in two types, Class components and Function components. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 23. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Function Component CommonFunctionalComponent.js
  • 24. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION App.js File Importing Function Component into App.js <CommonFunctionalComponent/>
  • 25. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 26. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Class Component CommonClassComponent.js
  • 27. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION App.js File Importing Function Component and Class Component, both into App.js <CommonFunctionalComponent/> <CommonClassComponent/>
  • 28. ReactJS Lifecycle and Methods Each component in React has a lifecycle which we can monitor and manipulate during its Four phases. The Four phases are: Mounting, Updating, Unmounting and Error Handling. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 29. ReactJS Lifecycle and Methods (Continue...) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Phases Description Mounting When an instance of a component is being created or inserted into the DOM Constructor() static getDerivedStateFromProps() render() componentDidMount() Updating When a component is being re-rendered as a result of changes to either its props or state static getDerivedStateFromProps() shouldComponentUpdate() Render() getSnapshotBeforeUpdate() componentDidUpdate()
  • 30. ReactJS Lifecycle and Methods (Continue...) Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION Phases Description UnMounting When a component is being removed from the DOM componentWillUnmount() Error Handling When there is an error during rendering. In a lifecycle method, or in the constructor of any child component. static getDerivedStateFromError() and ComponentDidCatch()
  • 31. State and Props in React React props: Props are arguments passed into React components. Props are passed to components via HTML attributes. React state: React components has a built-in state object. The state object is where you store property values that belongs to the component. When the state object changes, the component re-renders. Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 32. State and Props in React (Continue...) Props example: (source: w3school.com) import React from 'react'; import ReactDOM from 'react-dom'; class Car extends React.Component { render(){ return <h2>I am a {this.props.brand}!</h2> } } const myelement = <Car brand="Ford" />; ReactDOM.render(myelement, document.getElementById('root')); Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 33. State and Props in React (Continue...) State example: (source: w3school.com) import React from 'react'; import ReactDOM from 'react-dom'; class Car extends React.Component{ constructor(props){ super(props); this.state = { brand: "Ford", model: "Mustang", color: "red", year: 1964 }; } render(){ return(<div><h1>My {this.state.brand}</h1> <p>It is a {this.state.color} {this.state.model} from {this.state.year}. </p> </div>); } } ReactDOM.render(<Car />, document.getElementById('root')); Information Technology DURING TRAINING PROGRAM - WEEKLY PRESENTATION
  • 34. Information Technology Thank You. - Devang Garach devanggarach.rao@gmail.com