React
Index
• React Introduction
• React Components
• React Class Components
• React Props
• React Events
React Introduction
React, sometimes referred to as a frontend JavaScript framework, is a JavaScript library created by
Facebook.
React is a tool for building UI components.
React.JS History
Current version of React.JS is V18.0.0 (April 2022).
Initial Release to the Public (V0.3.0) was in July 2013.
React.JS was first used in 2011 for Facebook's Newsfeed feature.
Facebook Software Engineer, Jordan Walke, created it.
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.
Components come in two types, Class components and Function components, in this tutorial we will
concentrate on Function components.
Create Your First Component
When creating a React component, the component's name MUST start with an upper case letter.
Class Component
Function Component
Rendering a Component
Props
Components in Components
Components in Files
React Class Components
Before React 16.8, Class components were the only way to track state and lifecycle on a React component.
Function components were considered "state-less".
With the addition of Hooks, Function components are now almost equivalent to Class components. The
differences are so minor that you will probably never need to use a Class component in React.
Even though Function components are preferred, there are no current plans on removing Class components
from React.
This section will give you an overview of how to use Class components in React.
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, in this chapter you will learn
about Class components.
React Props
Props are arguments passed into React components.
Props are passed to components via HTML attributes.
React Props
React Props are like function arguments in JavaScript and attributes in HTML.
To send props into a component, use the same syntax as HTML attributes:
Example:-
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
ReactDOM.render(<App name = "JavaTpoint!!" />, document.getElementById('app'));
React Events
Just like HTML DOM events, React can perform actions based on user events.
React has the same events as HTML: click, change, mouseover etc.
Passing Arguments
To pass an argument to an event handler, use an arrow function.
React Event Object
Event handlers have access to the React event that triggered the function.
In our example the event is the "click" event.
1. onmouseover : The mouse is moved over an element.
2. onmouseup : The mouse button is released.
3. onmouseout : The mouse is moved off an element.
4. onmousemove: The mouse is moved.
5. Onmousedown: mouse button is pressed.

More Related Content

PPTX
React js
PPTX
PDF
React Interview Question PDF By ScholarHat
PDF
Copy of React_JS_Notes.pdf
PPTX
What are the components in React?
PDF
Fundamental concepts of react js
PPTX
React Class Components vs Functional Components: Which is Better?
React js
React Interview Question PDF By ScholarHat
Copy of React_JS_Notes.pdf
What are the components in React?
Fundamental concepts of react js
React Class Components vs Functional Components: Which is Better?

Similar to reatppt.pptx (20)

PDF
React JS Interview Questions PDF By ScholarHat
PPTX
ReactJS.pptx
PPTX
TRAINING pptt efwoiefo weoifjoiewjfoifjow.pptx
DOCX
React Components.docx
PPTX
react-slides.pptx
PDF
react-slides.pdf gives information about react library
PDF
react-slides.pdf
PPTX
react-slidlkjfl;kj;dlkjopidfjhopijgpoerjpofjiwoepifjopweifjepoies.pptx
PDF
REACTJS.pdf
PPTX
React JS Interview Question & Answer
PPTX
Introduction to React JS.pptx
PPTX
Dyanaimcs of business and economics unit 2
PDF
Basic fundamental of ReactJS
PPTX
React JS: A Secret Preview
PDF
unit 3_Adv WTAdvanced Web Tecg Design_HTML_CSS_JAVASCRIPT_AJAX_PPT.pdf
PPTX
Introduction to ReactJS UI Web Dev .pptx
PDF
Master React in 20 Days !.pdf used for react
PPTX
What is component in reactjs
PDF
Techpaathshala ReactJS .pdf
PPTX
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS Interview Questions PDF By ScholarHat
ReactJS.pptx
TRAINING pptt efwoiefo weoifjoiewjfoifjow.pptx
React Components.docx
react-slides.pptx
react-slides.pdf gives information about react library
react-slides.pdf
react-slidlkjfl;kj;dlkjopidfjhopijgpoerjpofjiwoepifjopweifjepoies.pptx
REACTJS.pdf
React JS Interview Question & Answer
Introduction to React JS.pptx
Dyanaimcs of business and economics unit 2
Basic fundamental of ReactJS
React JS: A Secret Preview
unit 3_Adv WTAdvanced Web Tecg Design_HTML_CSS_JAVASCRIPT_AJAX_PPT.pdf
Introduction to ReactJS UI Web Dev .pptx
Master React in 20 Days !.pdf used for react
What is component in reactjs
Techpaathshala ReactJS .pdf
React JS; all concepts. Contains React Features, JSX, functional & Class comp...

More from PSK Technolgies Pvt. Ltd. IT Company Nagpur (17)

PPTX
Low-Cost Digital Marketing Service in Nagpur | PSK Technologies
PPTX
PPTX
PPTX
PPTX
Core & Advance Java Training For Beginner-PSK Technologies Pvt. Ltd. Nagpur
PPTX
What is Java? Presentation On Introduction To Core Java By PSK Technologies
PPTX
Advance Networking Course Details PPT
PPTX
Low-Cost Digital Marketing Service in Nagpur | PSK Technologies
Core & Advance Java Training For Beginner-PSK Technologies Pvt. Ltd. Nagpur
What is Java? Presentation On Introduction To Core Java By PSK Technologies
Advance Networking Course Details PPT

Recently uploaded (20)

PDF
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
PDF
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PDF
4 layer Arch & Reference Arch of IoT.pdf
PDF
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
PDF
EIS-Webinar-Regulated-Industries-2025-08.pdf
PDF
Human Computer Interaction Miterm Lesson
PDF
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
PDF
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
The AI Revolution in Customer Service - 2025
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PDF
Advancing precision in air quality forecasting through machine learning integ...
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
Early detection and classification of bone marrow changes in lumbar vertebrae...
PPTX
Module 1 Introduction to Web Programming .pptx
PPTX
Training Program for knowledge in solar cell and solar industry
PDF
Ensemble model-based arrhythmia classification with local interpretable model...
PDF
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
PPTX
agenticai-neweraofintelligence-250529192801-1b5e6870.pptx
INTERSPEECH 2025 「Recent Advances and Future Directions in Voice Conversion」
Aug23rd - Mulesoft Community Workshop - Hyd, India.pdf
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
4 layer Arch & Reference Arch of IoT.pdf
CXOs-Are-you-still-doing-manual-DevOps-in-the-age-of-AI.pdf
EIS-Webinar-Regulated-Industries-2025-08.pdf
Human Computer Interaction Miterm Lesson
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
MENA-ECEONOMIC-CONTEXT-VC MENA-ECEONOMIC
NewMind AI Weekly Chronicles – August ’25 Week IV
The AI Revolution in Customer Service - 2025
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
Advancing precision in air quality forecasting through machine learning integ...
Lung cancer patients survival prediction using outlier detection and optimize...
Early detection and classification of bone marrow changes in lumbar vertebrae...
Module 1 Introduction to Web Programming .pptx
Training Program for knowledge in solar cell and solar industry
Ensemble model-based arrhythmia classification with local interpretable model...
5-Ways-AI-is-Revolutionizing-Telecom-Quality-Engineering.pdf
agenticai-neweraofintelligence-250529192801-1b5e6870.pptx

reatppt.pptx

  • 2. Index • React Introduction • React Components • React Class Components • React Props • React Events
  • 3. React Introduction React, sometimes referred to as a frontend JavaScript framework, is a JavaScript library created by Facebook. React is a tool for building UI components. React.JS History Current version of React.JS is V18.0.0 (April 2022). Initial Release to the Public (V0.3.0) was in July 2013. React.JS was first used in 2011 for Facebook's Newsfeed feature. Facebook Software Engineer, Jordan Walke, created it.
  • 4. 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. Components come in two types, Class components and Function components, in this tutorial we will concentrate on Function components. Create Your First Component When creating a React component, the component's name MUST start with an upper case letter. Class Component Function Component Rendering a Component Props Components in Components Components in Files
  • 5. React Class Components Before React 16.8, Class components were the only way to track state and lifecycle on a React component. Function components were considered "state-less". With the addition of Hooks, Function components are now almost equivalent to Class components. The differences are so minor that you will probably never need to use a Class component in React. Even though Function components are preferred, there are no current plans on removing Class components from React. This section will give you an overview of how to use Class components in React. 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, in this chapter you will learn about Class components.
  • 6. React Props Props are arguments passed into React components. Props are passed to components via HTML attributes. React Props React Props are like function arguments in JavaScript and attributes in HTML. To send props into a component, use the same syntax as HTML attributes: Example:- import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App name = "JavaTpoint!!" />, document.getElementById('app'));
  • 7. React Events Just like HTML DOM events, React can perform actions based on user events. React has the same events as HTML: click, change, mouseover etc. Passing Arguments To pass an argument to an event handler, use an arrow function. React Event Object Event handlers have access to the React event that triggered the function. In our example the event is the "click" event. 1. onmouseover : The mouse is moved over an element. 2. onmouseup : The mouse button is released. 3. onmouseout : The mouse is moved off an element. 4. onmousemove: The mouse is moved. 5. Onmousedown: mouse button is pressed.