SlideShare a Scribd company logo
React/ReactJS/React.js
Module: 4: Fundamentals of React.js
Industry Trends for React/React.js
• React developers earn more money when compared to other web
development technologies.
• Average salary of React developer across the US is $91,000 per
annum.
• Average salary of React developer across in India is 7,25,000 per
annum.
• React is gaining popularity and being adopted by many countries.
• :
Companies using react:
React Pre-requisites
 One should be familiar with programing concepts like function,
arrays, Objects and classes.
 HTML
 CSS
 JavaScript
 Understanding of ES6 (ES6 stands for ECMAScript 6. ECMAScript was
created to standardize JavaScript, and ES6 is the 6th version of
ECMAScript )
React/React.js/ReactJS
- React (also known as React.js or ReactJS) is a free open source java script library for
building fast an interactive front end UI interfaces for web and mobile applications.
- It is used for building user interfaces specifically for single-page applications which
means complete website in single page
- In MVC architecture, react is the view which defines how the app looks and feels like.
- It’s used for handling the view layer for web and mobile apps. React also allows us to
create reusable UI components.
- React is a User Interface (UI) library
- React can be used to develop both web and mobile interfaces.
- It was developed in facebook now meta in 2011.
- React was developed by “Jordon Walke” an engineer in facebook.
- React first deployed on Facebook’s newsfeed in 2011 and on
Instagram.com in 2012
• React allows developers to create large web applications that can change
data, without reloading the page.
• The main purpose of React is to be fast, scalable, and simple.
• It works only on user interfaces in the application.
•
To conclude : we can say…..
 React is a declarative, efficient, and flexible JavaScript library for building
user interfaces. It lets you compose complex UIs from small and isolated
pieces of code called “components”. React has a few different kinds of
components.
Why React is so popular
• Easy creation of dynamic web site.
• Performance enhancement
• Reusable components
• Unidirectional Data flow
• Can be used for mobile apps
• Dedicated tools for debugging
React Compiler: Babel
• Babel is a JavaScript compiler that can translate markup or programming
languages into JavaScript.
• With Babel, you can use the newest features of JavaScript (ES6 -
ECMAScript 2015).
• Babel is available for different conversions. React uses Babel to convert
JSX into JavaScript.
• Please note that <script type="text/babel"> is needed for using Babel.
Reactjs  notes.pptx for web development- tutorial and theory
React Features:
• Currently, ReactJS gaining quick
popularity as the best JavaScript
framework among web developers.
It is playing an essential role in the
front-end ecosystem. The
important features of ReactJS are
as following.
• JSX
• Components
• One-way Data Binding
• Virtual DOM
• Simplicity
• Performance
Features of React : JSX
• JSX stands for JavaScript XML. It is a JavaScript syntax extension. Its an
XML or HTML like syntax used by ReactJS.
• In React, instead of using regular JavaScript for templating, it uses JSX.
• JSX is a simple JavaScript that allows HTML quoting and uses these
HTML tag syntax to render subcomponents.
• HTML syntax is processed into JavaScript calls of React Framework.
• We can also write in pure old JavaScript.
Reactjs  notes.pptx for web development- tutorial and theory
React Components
• ReactJS is all about components. ReactJS application is made up of
multiple components, and each component has its own logic and
controls. These components can be reusable which help you to
maintain the code when working on larger scale projects.
Reactjs  notes.pptx for web development- tutorial and theory
React Components
In ReactJS, a component is a reusable and independent piece of code that
defines a part of a user interface. It can be thought of as a building block
for constructing a larger application.
There are two main types of components in ReactJS:
• Function Components: These are simple and stateless components that
take in props (short for properties) as input and return a React element
(JSX) as output. They are mainly used for rendering static content.
• Class Components: These are more complex and can have state and
lifecycle methods. They extend the React Component class and have a
render() method that returns a React element. They are used for more
complex logic and interaction with the user.
• Overall, components are the building blocks of a ReactJS application and
are used to create reusable UI elements
Example 1
Class Components Function Components
The class component also requires
a render() method, this method returns
HTML.
class Car extends React.Component
{ render()
{ return <h2>Hi, I am a Car!</h2>; }
}
Create a Function component called Car
function Car()
{
return <h2>Hi, I am a Car!</h2>;
}
Example 2
Now your React application has a component called Car, which returns an <h2> element.
To use this component in your application, use similar syntax as normal HTML: <Car />
import React from 'react';
import ReactDOM from 'react-dom/client';
function Car()
{ return <h2>Hi, I am a Car!</h2>;}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<Car color="red"/>);
output: Hi, I am a Car!
• Multiple Components
Components can be reusable which help you to maintain the code when working on
larger scale projects.
Example 3
import React from 'react';
import ReactDOM from 'react-dom/client';
function Car() {
return <h2>I am a Car!</h2>;
}
function Garage() { return ( <><h1>Who lives in my Garage?</h1>
<Car /> </> );}
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render (<Garage />);
output:
Who lives in my Garage?
I am a Car!
Why React is fast ?
What is meant by rendering in react js?
• Rendering in ReactJS refers to the process of displaying or updating the
contents of the user interface based on the current state and props of
the components.
• When a React component is rendered, it generates a virtual DOM
(Document Object Model) which is a lightweight representation of the
actual DOM.
• The virtual DOM is then compared to the previous version of the virtual
DOM, and only the differences are updated in the actual DOM.
Example 4
Here is an example of a simple React component with a render() method:
import React from 'react';
class Greeting extends React.Component {
render() {
return (
<div>
<h1>Hello, {this.props.name}!</h1>
<p>Today is {this.props.day}.</p>
</div>
);
}
} export default Greeting;
Reactjs  notes.pptx for web development- tutorial and theory
Virtual DOM
• The virtual DOM (VDOM) is a programming concept where an ideal,
or “virtual”, representation of a UI is kept in memory and synced
with the “real” DOM by a library such as ReactDOM. This process is
called reconciliation.
• A virtual DOM object is a representation of the original DOM object.
It works like a one-way data binding. Whenever any modifications
happen in the web application, the entire UI is re-rendered in virtual
DOM representation.
• Then it checks the difference between the previous DOM
representation and new DOM. Once it has done, the real DOM will
update only the things that have actually changed.
• This makes the application faster, and there is no wastage of memory.
Below is a visual description of the rendering
process when an application re-renders.
Reactjs  notes.pptx for web development- tutorial and theory
MOST POPULAR COMPONENTS
• GRIDS
• Data Grid
• Pivot Table
• Tree Grid
• Spreadsheet
• CALENDARS
• Scheduler
• Gantt Chart
• Calendar
• DatePicker
• DateRangePi
cker
• DateTime
Picker
• TimePicker
• DATA
VISUALIZATION
• Charts
• Stock Chart
• Circular Gauge
• Linear Gauge
• Diagram
• HeatMap
Chart
• Maps
• Range Selector
• Smith Chart
• Sparkline
Charts
• Barcode
Generator
• TreeMap
• Bullet Chart
• Kanban
• VIEWER
• PDF Viewer
• NAVIGATION
• Accordion
• Breadcrumb
• Context
Menu
• Menu Bar
• Sidebar
• Tabs
• Toolbar
• TreeView
• File Manager
• NOTIFICATION
S
• Badge
• Toast
• Progress Bar
• INPUTS
• TextBox
• Input Mask
• Numeric
Textbox
• Radio
Button
• Checkbox
• Color Picker
• File Upload
• Slider
• Signature P
REVIEW
• Toggle
Switch
Button
• BUTTONS
• Button
• Button
Group
• Dropdown
Menu
• Progress
Button
• Split Button
• Chips
• FORMS
• In-place
Editor
• Query
Builder UI
• EDITORS
• Rich Text
Editor
• Word
Processor
• DROPDOWNS
• AutoComplete
• ListBox
• ComboBox
• Dropdown List
• MultiSelect Dropdown
• Dropdown Tree
• LAYOUT
• Avatar
• Card
• Dialog
• ListView
• Tooltip
• Splitter
• Dashboard Layout
Ad

More Related Content

Similar to Reactjs notes.pptx for web development- tutorial and theory (20)

React.js vs node.js
React.js vs node.jsReact.js vs node.js
React.js vs node.js
Metricoid Technology
 
Introduction to React JS.pptx
Introduction to React JS.pptxIntroduction to React JS.pptx
Introduction to React JS.pptx
SHAIKIRFAN715544
 
learning react
learning reactlearning react
learning react
Eueung Mulyana
 
How To Upgrade The React 18 Release Candidate.pptx
How To Upgrade The React 18 Release Candidate.pptxHow To Upgrade The React 18 Release Candidate.pptx
How To Upgrade The React 18 Release Candidate.pptx
BOSC Tech Labs
 
Дмитрий Тежельников «Разработка вэб-решений с использованием Asp.NET.Core и ...
Дмитрий Тежельников  «Разработка вэб-решений с использованием Asp.NET.Core и ...Дмитрий Тежельников  «Разработка вэб-решений с использованием Asp.NET.Core и ...
Дмитрий Тежельников «Разработка вэб-решений с использованием Asp.NET.Core и ...
MskDotNet Community
 
GDG Workshop on React (By Aakanksha Rai)
GDG Workshop on React (By Aakanksha Rai)GDG Workshop on React (By Aakanksha Rai)
GDG Workshop on React (By Aakanksha Rai)
gdgoncampuslncts
 
React.js at Cortex
React.js at CortexReact.js at Cortex
React.js at Cortex
Geoff Harcourt
 
React DOM/Virtual DOM
React DOM/Virtual DOMReact DOM/Virtual DOM
React DOM/Virtual DOM
RajasreePothula3
 
Techpaathshala ReactJS .pdf
Techpaathshala ReactJS .pdfTechpaathshala ReactJS .pdf
Techpaathshala ReactJS .pdf
Techpaathshala
 
REACTJS1.ppsx
REACTJS1.ppsxREACTJS1.ppsx
REACTJS1.ppsx
IshwarSingh501217
 
Comparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAsComparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAs
Jennifer Estrada
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
Rami Sayar
 
React js vs react native a comparative analysis
React js vs react native a comparative analysisReact js vs react native a comparative analysis
React js vs react native a comparative analysis
Shelly Megan
 
Skill practical javascript diy projects
Skill practical javascript diy projectsSkill practical javascript diy projects
Skill practical javascript diy projects
SkillPracticalEdTech
 
How Can the Hermes Engine Help React Native Apps.docx.pdf
How Can the Hermes Engine Help React Native Apps.docx.pdfHow Can the Hermes Engine Help React Native Apps.docx.pdf
How Can the Hermes Engine Help React Native Apps.docx.pdf
Techugo
 
reactJS
reactJSreactJS
reactJS
Syam Santhosh
 
react js training|react js training in mumbai|
react js training|react js training in mumbai|react js training|react js training in mumbai|
react js training|react js training in mumbai|
programmersclubonlin
 
What is ReactJS?
What is ReactJS?What is ReactJS?
What is ReactJS?
Albiorix Technology
 
Tech Talk on ReactJS
Tech Talk on ReactJSTech Talk on ReactJS
Tech Talk on ReactJS
Atlogys Technical Consulting
 
Maximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdfMaximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdf
BOSC Tech Labs
 
Introduction to React JS.pptx
Introduction to React JS.pptxIntroduction to React JS.pptx
Introduction to React JS.pptx
SHAIKIRFAN715544
 
How To Upgrade The React 18 Release Candidate.pptx
How To Upgrade The React 18 Release Candidate.pptxHow To Upgrade The React 18 Release Candidate.pptx
How To Upgrade The React 18 Release Candidate.pptx
BOSC Tech Labs
 
Дмитрий Тежельников «Разработка вэб-решений с использованием Asp.NET.Core и ...
Дмитрий Тежельников  «Разработка вэб-решений с использованием Asp.NET.Core и ...Дмитрий Тежельников  «Разработка вэб-решений с использованием Asp.NET.Core и ...
Дмитрий Тежельников «Разработка вэб-решений с использованием Asp.NET.Core и ...
MskDotNet Community
 
GDG Workshop on React (By Aakanksha Rai)
GDG Workshop on React (By Aakanksha Rai)GDG Workshop on React (By Aakanksha Rai)
GDG Workshop on React (By Aakanksha Rai)
gdgoncampuslncts
 
Techpaathshala ReactJS .pdf
Techpaathshala ReactJS .pdfTechpaathshala ReactJS .pdf
Techpaathshala ReactJS .pdf
Techpaathshala
 
Comparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAsComparing Angular and React JS for SPAs
Comparing Angular and React JS for SPAs
Jennifer Estrada
 
Introduction to React Native
Introduction to React NativeIntroduction to React Native
Introduction to React Native
Rami Sayar
 
React js vs react native a comparative analysis
React js vs react native a comparative analysisReact js vs react native a comparative analysis
React js vs react native a comparative analysis
Shelly Megan
 
Skill practical javascript diy projects
Skill practical javascript diy projectsSkill practical javascript diy projects
Skill practical javascript diy projects
SkillPracticalEdTech
 
How Can the Hermes Engine Help React Native Apps.docx.pdf
How Can the Hermes Engine Help React Native Apps.docx.pdfHow Can the Hermes Engine Help React Native Apps.docx.pdf
How Can the Hermes Engine Help React Native Apps.docx.pdf
Techugo
 
react js training|react js training in mumbai|
react js training|react js training in mumbai|react js training|react js training in mumbai|
react js training|react js training in mumbai|
programmersclubonlin
 
Maximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdfMaximize Development Efficiency with ReactJS.pdf
Maximize Development Efficiency with ReactJS.pdf
BOSC Tech Labs
 

Recently uploaded (20)

Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
MiguelMarques372250
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
BTech_CSE_LPU_Presentation.pptx.........
BTech_CSE_LPU_Presentation.pptx.........BTech_CSE_LPU_Presentation.pptx.........
BTech_CSE_LPU_Presentation.pptx.........
jinny kaur
 
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
LiyaShaji4
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
aset and manufacturing optimization and connecting edge
aset and manufacturing optimization and connecting edgeaset and manufacturing optimization and connecting edge
aset and manufacturing optimization and connecting edge
alilamisse
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Building Security Systems in Architecture.pdf
Building Security Systems in Architecture.pdfBuilding Security Systems in Architecture.pdf
Building Security Systems in Architecture.pdf
rabiaatif2
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
BCS401 ADA Second IA Test Question Bank.pdf
BCS401 ADA Second IA Test Question Bank.pdfBCS401 ADA Second IA Test Question Bank.pdf
BCS401 ADA Second IA Test Question Bank.pdf
VENKATESHBHAT25
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Upstream_processing of industrial products.pptx
Upstream_processing of industrial products.pptxUpstream_processing of industrial products.pptx
Upstream_processing of industrial products.pptx
KshitijJayswal2
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
How to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptxHow to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptx
engaash9
 
Elevate Your Workflow
Elevate Your WorkflowElevate Your Workflow
Elevate Your Workflow
NickHuld
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Gas Power Plant for Power Generation System
Gas Power Plant for Power Generation SystemGas Power Plant for Power Generation System
Gas Power Plant for Power Generation System
JourneyWithMe1
 
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...Taking AI Welfare Seriously, In this report, we argue that there is a realist...
Taking AI Welfare Seriously, In this report, we argue that there is a realist...
MiguelMarques372250
 
Machine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptxMachine learning project on employee attrition detection using (2).pptx
Machine learning project on employee attrition detection using (2).pptx
rajeswari89780
 
BTech_CSE_LPU_Presentation.pptx.........
BTech_CSE_LPU_Presentation.pptx.........BTech_CSE_LPU_Presentation.pptx.........
BTech_CSE_LPU_Presentation.pptx.........
jinny kaur
 
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
Explainable-Artificial-Intelligence-in-Disaster-Risk-Management (2).pptx_2024...
LiyaShaji4
 
introduction to machine learining for beginers
introduction to machine learining for beginersintroduction to machine learining for beginers
introduction to machine learining for beginers
JoydebSheet
 
aset and manufacturing optimization and connecting edge
aset and manufacturing optimization and connecting edgeaset and manufacturing optimization and connecting edge
aset and manufacturing optimization and connecting edge
alilamisse
 
π0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalizationπ0.5: a Vision-Language-Action Model with Open-World Generalization
π0.5: a Vision-Language-Action Model with Open-World Generalization
NABLAS株式会社
 
ELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdfELectronics Boards & Product Testing_Shiju.pdf
ELectronics Boards & Product Testing_Shiju.pdf
Shiju Jacob
 
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITYADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ADVXAI IN MALWARE ANALYSIS FRAMEWORK: BALANCING EXPLAINABILITY WITH SECURITY
ijscai
 
Smart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineeringSmart Storage Solutions.pptx for production engineering
Smart Storage Solutions.pptx for production engineering
rushikeshnavghare94
 
Building Security Systems in Architecture.pdf
Building Security Systems in Architecture.pdfBuilding Security Systems in Architecture.pdf
Building Security Systems in Architecture.pdf
rabiaatif2
 
Mathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdfMathematical foundation machine learning.pdf
Mathematical foundation machine learning.pdf
TalhaShahid49
 
BCS401 ADA Second IA Test Question Bank.pdf
BCS401 ADA Second IA Test Question Bank.pdfBCS401 ADA Second IA Test Question Bank.pdf
BCS401 ADA Second IA Test Question Bank.pdf
VENKATESHBHAT25
 
Compiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptxCompiler Design_Lexical Analysis phase.pptx
Compiler Design_Lexical Analysis phase.pptx
RushaliDeshmukh2
 
Upstream_processing of industrial products.pptx
Upstream_processing of industrial products.pptxUpstream_processing of industrial products.pptx
Upstream_processing of industrial products.pptx
KshitijJayswal2
 
Avnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights FlyerAvnet Silica's PCIM 2025 Highlights Flyer
Avnet Silica's PCIM 2025 Highlights Flyer
WillDavies22
 
How to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptxHow to Make Material Space Qu___ (1).pptx
How to Make Material Space Qu___ (1).pptx
engaash9
 
Elevate Your Workflow
Elevate Your WorkflowElevate Your Workflow
Elevate Your Workflow
NickHuld
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Gas Power Plant for Power Generation System
Gas Power Plant for Power Generation SystemGas Power Plant for Power Generation System
Gas Power Plant for Power Generation System
JourneyWithMe1
 
Ad

Reactjs notes.pptx for web development- tutorial and theory

  • 2. Industry Trends for React/React.js • React developers earn more money when compared to other web development technologies. • Average salary of React developer across the US is $91,000 per annum. • Average salary of React developer across in India is 7,25,000 per annum. • React is gaining popularity and being adopted by many countries. • :
  • 4. React Pre-requisites  One should be familiar with programing concepts like function, arrays, Objects and classes.  HTML  CSS  JavaScript  Understanding of ES6 (ES6 stands for ECMAScript 6. ECMAScript was created to standardize JavaScript, and ES6 is the 6th version of ECMAScript )
  • 5. React/React.js/ReactJS - React (also known as React.js or ReactJS) is a free open source java script library for building fast an interactive front end UI interfaces for web and mobile applications. - It is used for building user interfaces specifically for single-page applications which means complete website in single page - In MVC architecture, react is the view which defines how the app looks and feels like. - It’s used for handling the view layer for web and mobile apps. React also allows us to create reusable UI components. - React is a User Interface (UI) library - React can be used to develop both web and mobile interfaces.
  • 6. - It was developed in facebook now meta in 2011. - React was developed by “Jordon Walke” an engineer in facebook. - React first deployed on Facebook’s newsfeed in 2011 and on Instagram.com in 2012 • React allows developers to create large web applications that can change data, without reloading the page. • The main purpose of React is to be fast, scalable, and simple. • It works only on user interfaces in the application. •
  • 7. To conclude : we can say…..  React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It lets you compose complex UIs from small and isolated pieces of code called “components”. React has a few different kinds of components.
  • 8. Why React is so popular • Easy creation of dynamic web site. • Performance enhancement • Reusable components • Unidirectional Data flow • Can be used for mobile apps • Dedicated tools for debugging
  • 9. React Compiler: Babel • Babel is a JavaScript compiler that can translate markup or programming languages into JavaScript. • With Babel, you can use the newest features of JavaScript (ES6 - ECMAScript 2015). • Babel is available for different conversions. React uses Babel to convert JSX into JavaScript. • Please note that <script type="text/babel"> is needed for using Babel.
  • 11. React Features: • Currently, ReactJS gaining quick popularity as the best JavaScript framework among web developers. It is playing an essential role in the front-end ecosystem. The important features of ReactJS are as following. • JSX • Components • One-way Data Binding • Virtual DOM • Simplicity • Performance
  • 12. Features of React : JSX • JSX stands for JavaScript XML. It is a JavaScript syntax extension. Its an XML or HTML like syntax used by ReactJS. • In React, instead of using regular JavaScript for templating, it uses JSX. • JSX is a simple JavaScript that allows HTML quoting and uses these HTML tag syntax to render subcomponents. • HTML syntax is processed into JavaScript calls of React Framework. • We can also write in pure old JavaScript.
  • 14. React Components • ReactJS is all about components. ReactJS application is made up of multiple components, and each component has its own logic and controls. These components can be reusable which help you to maintain the code when working on larger scale projects.
  • 16. React Components In ReactJS, a component is a reusable and independent piece of code that defines a part of a user interface. It can be thought of as a building block for constructing a larger application. There are two main types of components in ReactJS: • Function Components: These are simple and stateless components that take in props (short for properties) as input and return a React element (JSX) as output. They are mainly used for rendering static content. • Class Components: These are more complex and can have state and lifecycle methods. They extend the React Component class and have a render() method that returns a React element. They are used for more complex logic and interaction with the user. • Overall, components are the building blocks of a ReactJS application and are used to create reusable UI elements
  • 17. Example 1 Class Components Function Components The class component also requires a render() method, this method returns HTML. class Car extends React.Component { render() { return <h2>Hi, I am a Car!</h2>; } } Create a Function component called Car function Car() { return <h2>Hi, I am a Car!</h2>; }
  • 18. Example 2 Now your React application has a component called Car, which returns an <h2> element. To use this component in your application, use similar syntax as normal HTML: <Car /> import React from 'react'; import ReactDOM from 'react-dom/client'; function Car() { return <h2>Hi, I am a Car!</h2>;} const root = ReactDOM.createRoot(document.getElementById('root')); root.render(<Car color="red"/>); output: Hi, I am a Car!
  • 19. • Multiple Components Components can be reusable which help you to maintain the code when working on larger scale projects. Example 3 import React from 'react'; import ReactDOM from 'react-dom/client'; function Car() { return <h2>I am a Car!</h2>; } function Garage() { return ( <><h1>Who lives in my Garage?</h1> <Car /> </> );} const root = ReactDOM.createRoot(document.getElementById('root')); root.render (<Garage />); output: Who lives in my Garage? I am a Car!
  • 20. Why React is fast ?
  • 21. What is meant by rendering in react js? • Rendering in ReactJS refers to the process of displaying or updating the contents of the user interface based on the current state and props of the components. • When a React component is rendered, it generates a virtual DOM (Document Object Model) which is a lightweight representation of the actual DOM. • The virtual DOM is then compared to the previous version of the virtual DOM, and only the differences are updated in the actual DOM.
  • 22. Example 4 Here is an example of a simple React component with a render() method: import React from 'react'; class Greeting extends React.Component { render() { return ( <div> <h1>Hello, {this.props.name}!</h1> <p>Today is {this.props.day}.</p> </div> ); } } export default Greeting;
  • 24. Virtual DOM • The virtual DOM (VDOM) is a programming concept where an ideal, or “virtual”, representation of a UI is kept in memory and synced with the “real” DOM by a library such as ReactDOM. This process is called reconciliation. • A virtual DOM object is a representation of the original DOM object. It works like a one-way data binding. Whenever any modifications happen in the web application, the entire UI is re-rendered in virtual DOM representation. • Then it checks the difference between the previous DOM representation and new DOM. Once it has done, the real DOM will update only the things that have actually changed. • This makes the application faster, and there is no wastage of memory.
  • 25. Below is a visual description of the rendering process when an application re-renders.
  • 27. MOST POPULAR COMPONENTS • GRIDS • Data Grid • Pivot Table • Tree Grid • Spreadsheet • CALENDARS • Scheduler • Gantt Chart • Calendar • DatePicker • DateRangePi cker • DateTime Picker • TimePicker • DATA VISUALIZATION • Charts • Stock Chart • Circular Gauge • Linear Gauge • Diagram • HeatMap Chart • Maps • Range Selector • Smith Chart • Sparkline Charts • Barcode Generator • TreeMap • Bullet Chart • Kanban • VIEWER • PDF Viewer • NAVIGATION • Accordion • Breadcrumb • Context Menu • Menu Bar • Sidebar • Tabs • Toolbar • TreeView • File Manager • NOTIFICATION S • Badge • Toast • Progress Bar • INPUTS • TextBox • Input Mask • Numeric Textbox • Radio Button • Checkbox • Color Picker • File Upload • Slider • Signature P REVIEW • Toggle Switch Button • BUTTONS • Button • Button Group • Dropdown Menu • Progress Button • Split Button • Chips • FORMS • In-place Editor • Query Builder UI • EDITORS • Rich Text Editor • Word Processor
  • 28. • DROPDOWNS • AutoComplete • ListBox • ComboBox • Dropdown List • MultiSelect Dropdown • Dropdown Tree • LAYOUT • Avatar • Card • Dialog • ListView • Tooltip • Splitter • Dashboard Layout

Editor's Notes

  • #6: MVC (Model-View-Controller) is a pattern in software design commonly used to implement user interfaces, data, and controlling logic. It emphasizes a separation between the software's business logic and display