SlideShare a Scribd company logo
Basic Fundamental of ReactJS
ReactJS or more popularly known as React was developed in the year 2011 by Jordan Walke,
a software engineer at Facebook. It was created to cater to the need of updating a particular
section of the Facebook page without refreshing it.
What is React
React is a JavaScript library which is used to build user interfaces for web applications. Initially,
it was maintained and developed by Facebook but now it is an open source technology. React
controls the View part of MVC(Model View Controller) architecture.
Need of creating React
In 2011, the Facebook team is confronted with a problem which was that, to update the news
feed section a user have to refresh the site again and again which make the overall flow of
Facebook slow, so to tackle this problem Jordan Walke comes with a solution to divide the
entire web page into small components which can be updated individually without refreshing
the entire page.
Fundamentals of React
 Component:-
In React a component is nothing but just a part of a complete web page which serves
a specific purpose. For example:- The news feed section of Facebook is nothing but
just a component in the entire Facebook page which serves a specific purpose of
displaying continuously updating news. Similarly, a web page can consist of many
such components. So, when we create a web page in react it is nothing but a
collection of components.
One more advantage of these components is their re-usability that means we can use
the same component in different web pages. For example:- Title and Footer of a web
page.
 Props:-
In React one component can call other components, the component which calls
another component is known as Parent component and the component which is called
is known as Child component. When parent component calls child component, it can
pass properties while calling and the child component can use these properties
according to its requirements.
 State:-
State is nothing but just a Javascript object which may contain other key-value pairs. A
state is always private to a particular component that means state of one component is
not accessible to other components. In React state divides components into two types
namely Stateless or Functional components and Stateful or Class components.
Stateless Stateful
1. This component is represented as a function. 1. This component is represented as a class.
2. This component doesn’t maintain any state. 2. This component can maintain its state.
3. This component doesn’t have any lifecycle methods. 3. This component does have life methods.
 Virtual Dom:-
To improve the performance, in React changes are first made in a Virtual DOM
which is created and maintained by React in the background. This Virtual DOM
reflect changes on the Real DOM only when the last update in Virtual DOM has
differences with the Real DOM present state. This process improves the
performance exponentially and in React terminology this entire process is known
as Reconciliatory Algorithm.
Basic fundamental of ReactJS

More Related Content

PDF
GITS Class #19: Build Large Scale Vue.js Apps with Vuex
PDF
GITS Class #20: Building A Fast and Responsive UI in React Native
PDF
Top 8 Ruby on Rails Gems
PPTX
Анатолій Поляков — Subdomains everywhere
ODP
Joomla multi effect modal box
PPTX
Android Training For Beginner @DILO Bandung
ODP
Git workflow
PPTX
Mule maven
GITS Class #19: Build Large Scale Vue.js Apps with Vuex
GITS Class #20: Building A Fast and Responsive UI in React Native
Top 8 Ruby on Rails Gems
Анатолій Поляков — Subdomains everywhere
Joomla multi effect modal box
Android Training For Beginner @DILO Bandung
Git workflow
Mule maven

What's hot (16)

PPTX
Presentation1
PDF
Lightening a component based Rails architecture
PPSX
16 asp.net session23
PPTX
Angular 9 New features
PPTX
Web Development.pptx
PDF
Angular Routing Tutorial | AngularJS vs Angular Router | Angular Training | E...
PDF
Step by Step Guide on Lazy Loading in Angular 11
DOCX
PPTX
Salesforce developer
PDF
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
PDF
Angular 2 Training | Angular 2 Tutorial For Beginners | Angular Certification...
ODP
Angular 6 - The Complete Guide
ODP
A Glimpse on Angular 4
PDF
Salesforce developer
ODP
Chennai Drupal Meet
PPTX
Meetup angular http client
Presentation1
Lightening a component based Rails architecture
16 asp.net session23
Angular 9 New features
Web Development.pptx
Angular Routing Tutorial | AngularJS vs Angular Router | Angular Training | E...
Step by Step Guide on Lazy Loading in Angular 11
Salesforce developer
What's New in Angular 4 | Angular 4 Features | Angular 4 Changes | Angular Tu...
Angular 2 Training | Angular 2 Tutorial For Beginners | Angular Certification...
Angular 6 - The Complete Guide
A Glimpse on Angular 4
Salesforce developer
Chennai Drupal Meet
Meetup angular http client
Ad

Similar to Basic fundamental of ReactJS (20)

PPTX
Getting started with react & redux
PDF
React Interview Question & Answers PDF By ScholarHat
PPTX
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
PPTX
PPTX
Reactjs
PPTX
2.React tttttttttttttttttttttttttttttttt
PPTX
Presentation on "An Introduction to ReactJS"
PPTX
Introduction to ReactJS UI Web Dev .pptx
PPTX
reactJS
PPTX
Introduction to React JS.pptx
PPTX
PPTX
React workshop
PPTX
ReactJS Code Impact
PDF
React Interview Question PDF By ScholarHat
PPTX
PPSX
REACTJS1.ppsx
PDF
Learning React js Learn React JS From Scratch with Hands On Projects 2nd Edit...
PPTX
React Workshop: Core concepts of react
PPTX
PPTX
Introduction to react and redux
Getting started with react & redux
React Interview Question & Answers PDF By ScholarHat
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
Reactjs
2.React tttttttttttttttttttttttttttttttt
Presentation on "An Introduction to ReactJS"
Introduction to ReactJS UI Web Dev .pptx
reactJS
Introduction to React JS.pptx
React workshop
ReactJS Code Impact
React Interview Question PDF By ScholarHat
REACTJS1.ppsx
Learning React js Learn React JS From Scratch with Hands On Projects 2nd Edit...
React Workshop: Core concepts of react
Introduction to react and redux
Ad

More from InnovationM (20)

PDF
How to use data binding in android
PDF
Capture image on eye blink
PDF
Mob x in react
PDF
How to use geolocation in react native apps
PDF
Android 8 behavior changes
PDF
Understanding of react fiber architecture
PDF
Automatic reference counting (arc) and memory management in swift
PDF
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
PDF
How prototype works in java script?
PDF
React – Let’s “Hook” up
PDF
Razorpay Payment Gateway Integration In iOS Swift
PDF
Paytm integration in swift
PDF
Line Messaging API Integration with Spring-Boot
PDF
Basic Fundamental of Redux
PDF
Integration of Highcharts with React ( JavaScript library )
PDF
Serialization & De-serialization in Java
PDF
Concept of Stream API Java 1.8
PDF
How to Make Each Round of Testing Count?
PDF
Model View Presenter For Android
PDF
Retrofit Library In Android
How to use data binding in android
Capture image on eye blink
Mob x in react
How to use geolocation in react native apps
Android 8 behavior changes
Understanding of react fiber architecture
Automatic reference counting (arc) and memory management in swift
Firebase crashlytics integration in iOS swift (dSYM File Required Problem Res...
How prototype works in java script?
React – Let’s “Hook” up
Razorpay Payment Gateway Integration In iOS Swift
Paytm integration in swift
Line Messaging API Integration with Spring-Boot
Basic Fundamental of Redux
Integration of Highcharts with React ( JavaScript library )
Serialization & De-serialization in Java
Concept of Stream API Java 1.8
How to Make Each Round of Testing Count?
Model View Presenter For Android
Retrofit Library In Android

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
Teaching material agriculture food technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Machine learning based COVID-19 study performance prediction
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
A comparative analysis of optical character recognition models for extracting...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Machine Learning_overview_presentation.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Unlocking AI with Model Context Protocol (MCP)
Spectroscopy.pptx food analysis technology
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Teaching material agriculture food technology
20250228 LYD VKU AI Blended-Learning.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
Spectral efficient network and resource selection model in 5G networks
Machine learning based COVID-19 study performance prediction
Review of recent advances in non-invasive hemoglobin estimation
gpt5_lecture_notes_comprehensive_20250812015547.pdf
sap open course for s4hana steps from ECC to s4
A comparative analysis of optical character recognition models for extracting...
Digital-Transformation-Roadmap-for-Companies.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Machine Learning_overview_presentation.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Unlocking AI with Model Context Protocol (MCP)

Basic fundamental of ReactJS

  • 1. Basic Fundamental of ReactJS ReactJS or more popularly known as React was developed in the year 2011 by Jordan Walke, a software engineer at Facebook. It was created to cater to the need of updating a particular section of the Facebook page without refreshing it. What is React React is a JavaScript library which is used to build user interfaces for web applications. Initially, it was maintained and developed by Facebook but now it is an open source technology. React controls the View part of MVC(Model View Controller) architecture. Need of creating React In 2011, the Facebook team is confronted with a problem which was that, to update the news feed section a user have to refresh the site again and again which make the overall flow of Facebook slow, so to tackle this problem Jordan Walke comes with a solution to divide the entire web page into small components which can be updated individually without refreshing the entire page. Fundamentals of React  Component:- In React a component is nothing but just a part of a complete web page which serves a specific purpose. For example:- The news feed section of Facebook is nothing but just a component in the entire Facebook page which serves a specific purpose of displaying continuously updating news. Similarly, a web page can consist of many such components. So, when we create a web page in react it is nothing but a collection of components. One more advantage of these components is their re-usability that means we can use the same component in different web pages. For example:- Title and Footer of a web page.
  • 2.  Props:- In React one component can call other components, the component which calls another component is known as Parent component and the component which is called is known as Child component. When parent component calls child component, it can pass properties while calling and the child component can use these properties according to its requirements.  State:- State is nothing but just a Javascript object which may contain other key-value pairs. A state is always private to a particular component that means state of one component is not accessible to other components. In React state divides components into two types namely Stateless or Functional components and Stateful or Class components. Stateless Stateful 1. This component is represented as a function. 1. This component is represented as a class. 2. This component doesn’t maintain any state. 2. This component can maintain its state. 3. This component doesn’t have any lifecycle methods. 3. This component does have life methods.  Virtual Dom:- To improve the performance, in React changes are first made in a Virtual DOM which is created and maintained by React in the background. This Virtual DOM reflect changes on the Real DOM only when the last update in Virtual DOM has differences with the Real DOM present state. This process improves the performance exponentially and in React terminology this entire process is known as Reconciliatory Algorithm.