SlideShare a Scribd company logo
Rudar Daman Singla
Software Consultant
Knoldus Inc.
Getting Started
with React Basics
Shubhrank Rastogi
Software Consultant
Knoldus Inc.
Lack of etiquette and manners is a huge turn off.
KnolX Etiquettes
Punctuality
Respect Knolx session timings, you
are requested not to join sessions
after a 5 minutes threshold post
the session start time.
Feedback
Make sure to submit a constructive
feedback for all sessions as it is
very helpful for the presenter.
Silent Mode
Keep your mobile devices in silent
mode, feel free to move out of
session in case you need to attend
an urgent call.
Avoid Disturbance
Avoid unwanted chit chat during
the session.
React Components
Component Lifecycle
OUR AGENDA
01
`
What is React
02 Angular vs React
03
04
05
06 Demo
Some Famous Apps Built on React JS07
Create React App
References08
REACT
What is React?
● React is a JavaScript library created by Facebook.
● 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 can be used in the development of single-page or
mobile applications.
● Current stable release: 16.12.0 (November 14, 2019)
Angular vs React
Data Binding
Angular vs React
Language
Angular vs React
App Architecture
Angular vs React
Community Support
Angular vs React
Create React App
● npx create-react-app my-app
● cd my-app
● npm start
● sudo npm install -g create-react-app
● create-react-app my-app
● cd my-app
● npm start
React Components
● Components let you split the UI into independent, reusable pieces, and think about each piece in
isolation.
● The simplest way to define a component is to write a JavaScript function:
function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}
● Also ES6 class is used to define a component:
class Welcome extends React.Component {
render() {
return <h1>Hello, {this.props.name}</h1>;
}
}
Class-based vs Functional Components
Class-based Functional
class XY extends Component const XY = props => {...}
Access to state Access to State (useState())
Lifecycle Hooks No Lifecycle Hooks
Access state and pros via “this” Access props via “props”
Use if you need to manage state or access to
lifecycle hooks and you don’t want to use hooks!
Use in all other classes
Component Lifecycle Creation
constructor(props)
call super(props)
DO: Set up state
DON’T: Cause Side effects
getDerivedStateFromProps(props, state)
DO: Sync state
DON’T: Cause Side effects
render() Prepare & structure your JSX
Render Child Components
componentDidMount()
DO: Cause Side effects
DON’T: Update State (triggers
re-render)
Demo
Component Flow Diagram
Some Famous Apps Built on ReactJS
Q/A
● https://reactjs.org/docs
● https://www.udemy.com/course/react-the-complete-guide-incl-redux
References
Thank You !

More Related Content

What's hot (20)

PDF
Angular Libraries & NPM
Knoldus Inc.
 
DOCX
Spring competitive tests
SkillPracticalEdTech
 
DOCX
Spring competitive tests
SkillPracticalEdTech
 
PDF
Android testing part i
Kan-Han (John) Lu
 
PPTX
Dependency injection using dagger2
Javad Hashemi
 
PDF
How to push a react js application in production and sleep better
Emanuele Rampichini
 
PPTX
Dagger 2
William Wang
 
PDF
Node modules
Knoldus Inc.
 
PDF
CD using ArgoCD(KnolX).pdf
Knoldus Inc.
 
DOCX
Spring boot competitive tests
SkillPracticalEdTech
 
PPTX
[Android] DI in multimodule application
Oleg Mazhukin
 
ODP
Unit Test Android Without Going Bald
David Carver
 
PPTX
Say Hello to React day2 presentation
Smile Gupta
 
PPTX
Branching Strategies For Git and Subversion
Elian, I.
 
PDF
Getting Started with Akka Streams
Knoldus Inc.
 
PDF
Schedulers and Timers in Akka
Knoldus Inc.
 
PPTX
Progressive Web App Testing With Cypress.io
Knoldus Inc.
 
PPTX
Say hello to react js - Day 1
Smile Gupta
 
PDF
Getting started with dagger 2
Rodrigo Henriques
 
PDF
Angular 2... so can I use it now??
Laurent Duveau
 
Angular Libraries & NPM
Knoldus Inc.
 
Spring competitive tests
SkillPracticalEdTech
 
Spring competitive tests
SkillPracticalEdTech
 
Android testing part i
Kan-Han (John) Lu
 
Dependency injection using dagger2
Javad Hashemi
 
How to push a react js application in production and sleep better
Emanuele Rampichini
 
Dagger 2
William Wang
 
Node modules
Knoldus Inc.
 
CD using ArgoCD(KnolX).pdf
Knoldus Inc.
 
Spring boot competitive tests
SkillPracticalEdTech
 
[Android] DI in multimodule application
Oleg Mazhukin
 
Unit Test Android Without Going Bald
David Carver
 
Say Hello to React day2 presentation
Smile Gupta
 
Branching Strategies For Git and Subversion
Elian, I.
 
Getting Started with Akka Streams
Knoldus Inc.
 
Schedulers and Timers in Akka
Knoldus Inc.
 
Progressive Web App Testing With Cypress.io
Knoldus Inc.
 
Say hello to react js - Day 1
Smile Gupta
 
Getting started with dagger 2
Rodrigo Henriques
 
Angular 2... so can I use it now??
Laurent Duveau
 

Similar to Getting started with react basics (20)

PDF
Understanding React hooks | Walkingtree Technologies
Walking Tree Technologies
 
PPTX
Lecture 1 Introduction to React Native.pptx
GevitaChinnaiah
 
PDF
Start with Angular framework
Knoldus Inc.
 
PDF
Basics of React Hooks.pptx.pdf
Knoldus Inc.
 
PPTX
20180518 QNAP Seminar - Introduction to React Native
Eric Deng
 
PDF
How to create components in ReactJS_.pdf
BOSC Tech Labs
 
PDF
Top 7 react developer tools to use in 2021
WrapPixel
 
PPTX
React-JS.pptx
AnmolPandita7
 
PDF
Effects, Coeffects & Subscriptions: a pit of success for SPAs
Manuel Rivero
 
PPTX
Getting Started With React Native Presntation
Knoldus Inc.
 
PDF
Introduction to React JS
Bethmi Gunasekara
 
PDF
Front-End Modernization for Mortals
cgack
 
PDF
Front end-modernization
ColdFusionConference
 
PDF
Front end-modernization
devObjective
 
PDF
Effects, coeffects & subscriptions: a pit of success for SPAs Socracan18
Manuel Rivero
 
PPTX
This Is the ppt of How the react js work in the dealy life
AmanKoli6
 
PPTX
State Management with NGXS in Angular.pptx
Knoldus Inc.
 
PPTX
React JS: A Secret Preview
valuebound
 
PDF
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
PPTX
Pluginkla2019 - React Presentation
Angela Lehru
 
Understanding React hooks | Walkingtree Technologies
Walking Tree Technologies
 
Lecture 1 Introduction to React Native.pptx
GevitaChinnaiah
 
Start with Angular framework
Knoldus Inc.
 
Basics of React Hooks.pptx.pdf
Knoldus Inc.
 
20180518 QNAP Seminar - Introduction to React Native
Eric Deng
 
How to create components in ReactJS_.pdf
BOSC Tech Labs
 
Top 7 react developer tools to use in 2021
WrapPixel
 
React-JS.pptx
AnmolPandita7
 
Effects, Coeffects & Subscriptions: a pit of success for SPAs
Manuel Rivero
 
Getting Started With React Native Presntation
Knoldus Inc.
 
Introduction to React JS
Bethmi Gunasekara
 
Front-End Modernization for Mortals
cgack
 
Front end-modernization
ColdFusionConference
 
Front end-modernization
devObjective
 
Effects, coeffects & subscriptions: a pit of success for SPAs Socracan18
Manuel Rivero
 
This Is the ppt of How the react js work in the dealy life
AmanKoli6
 
State Management with NGXS in Angular.pptx
Knoldus Inc.
 
React JS: A Secret Preview
valuebound
 
Code Once; Run Everywhere - A Beginner’s Journey with React Native
Hasitha Walpola
 
Pluginkla2019 - React Presentation
Angela Lehru
 
Ad

More from Knoldus Inc. (20)

PPTX
Angular Hydration Presentation (FrontEnd)
Knoldus Inc.
 
PPTX
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
Knoldus Inc.
 
PPTX
Self-Healing Test Automation Framework - Healenium
Knoldus Inc.
 
PPTX
Kanban Metrics Presentation (Project Management)
Knoldus Inc.
 
PPTX
Java 17 features and implementation.pptx
Knoldus Inc.
 
PPTX
Chaos Mesh Introducing Chaos in Kubernetes
Knoldus Inc.
 
PPTX
GraalVM - A Step Ahead of JVM Presentation
Knoldus Inc.
 
PPTX
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
PPTX
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
PPTX
DAPR - Distributed Application Runtime Presentation
Knoldus Inc.
 
PPTX
Introduction to Azure Virtual WAN Presentation
Knoldus Inc.
 
PPTX
Introduction to Argo Rollouts Presentation
Knoldus Inc.
 
PPTX
Intro to Azure Container App Presentation
Knoldus Inc.
 
PPTX
Insights Unveiled Test Reporting and Observability Excellence
Knoldus Inc.
 
PPTX
Introduction to Splunk Presentation (DevOps)
Knoldus Inc.
 
PPTX
Code Camp - Data Profiling and Quality Analysis Framework
Knoldus Inc.
 
PPTX
AWS: Messaging Services in AWS Presentation
Knoldus Inc.
 
PPTX
Amazon Cognito: A Primer on Authentication and Authorization
Knoldus Inc.
 
PPTX
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
Knoldus Inc.
 
PPTX
Managing State & HTTP Requests In Ionic.
Knoldus Inc.
 
Angular Hydration Presentation (FrontEnd)
Knoldus Inc.
 
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
Knoldus Inc.
 
Self-Healing Test Automation Framework - Healenium
Knoldus Inc.
 
Kanban Metrics Presentation (Project Management)
Knoldus Inc.
 
Java 17 features and implementation.pptx
Knoldus Inc.
 
Chaos Mesh Introducing Chaos in Kubernetes
Knoldus Inc.
 
GraalVM - A Step Ahead of JVM Presentation
Knoldus Inc.
 
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
DAPR - Distributed Application Runtime Presentation
Knoldus Inc.
 
Introduction to Azure Virtual WAN Presentation
Knoldus Inc.
 
Introduction to Argo Rollouts Presentation
Knoldus Inc.
 
Intro to Azure Container App Presentation
Knoldus Inc.
 
Insights Unveiled Test Reporting and Observability Excellence
Knoldus Inc.
 
Introduction to Splunk Presentation (DevOps)
Knoldus Inc.
 
Code Camp - Data Profiling and Quality Analysis Framework
Knoldus Inc.
 
AWS: Messaging Services in AWS Presentation
Knoldus Inc.
 
Amazon Cognito: A Primer on Authentication and Authorization
Knoldus Inc.
 
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
Knoldus Inc.
 
Managing State & HTTP Requests In Ionic.
Knoldus Inc.
 
Ad

Recently uploaded (20)

PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PPTX
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
PDF
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
PDF
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Transforming Mining & Engineering Operations with Odoo ERP | Streamline Proje...
SatishKumar2651
 
Alarm in Android-Scheduling Timed Tasks Using AlarmManager in Android.pdf
Nabin Dhakal
 
Online Queue Management System for Public Service Offices in Nepal [Focused i...
Rishab Acharya
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 

Getting started with react basics