SlideShare a Scribd company logo
EXPLORING THE WORLD
OF WEB DEVELOPMENT
WITH REACT
Google Developer Student Clubs
With Aakanksha Rai
GDG LNCTS - AIML Lead
Tech Winter Break – Web Development Workshop
• Introduction to Full Stack Development
• Roadmap for MERN Stack Development
• Trending Web Frameworks in 2024
• What is React
• Why React
• Understanding some major topics of React
• Setting up your development environment
• React Project building
• Q/A Session
Agenda
Introduction to Web
Development • FRONTEND : The part of the website that users
see and interact with. This includes the design,
menus, text, images, videos, and overall layout.
• BACKEND : The server-side logic that controls
the frontend and manages the data and
infrastructure of the website.
• DATABASE: The storage and retrieval system for
the website's data. Backend developers use
databases to store, retrieve, and manipulate data.
Roadmap for MERN Stack
Development
Trending Web Frameworks among Developers
according to Stackoverflow in 2024
What is React
• React is a JavaScript library for building user interfaces (UI), primarily for single-
page applications (SPAs).
• Developed by Meta (formerly Facebook), React helps developers create interactive
and dynamic web applications by enabling the creation of reusable UI components.
• UI is broken down into reusable components, making development efficient and
maintainable
• React uses JSX, a syntax extension allowing developers to write HTML-like code
within JavaScript.
• React uses a virtual representation of the DOM to optimize updates, improving
performance.
Why
React
GDG Workshop on React (By Aakanksha Rai)
• JSX = JavaScript Extension Syntax
• It let’s us write HTML directly inside JS.
• “Babel” converts code written by us in JSX to JavaScript to be displayed on browser.
• Writing markup in JSX:
1. Return a ssingle root element
2. Close all the tags
3. camelCase most of the things
• We can use curly braces {} in JSX to open a window to JavaScript.
• Example:
What is
JSX
React
Component
• Components are independent and reusable bits of code.
• They serve the same purpose as JavaScript functions, but work in isolation and return
HTML.
• There can be two types of components:
Class Component
Function Component
React
Props
• Props are arguments passed into React components.
• Props stands for properties.
• React Props are like function arguments in JavaScript and attributes in HTML.
• Props are passed to components via HTML attributes
• Example:
What is a
Hook
• Hooks were added to React in version 16.8.
• Hooks allow function components to have access to state and other React features. Because
of this, class components are generally no longer needed.
• Hooks allow us to "hook" into React features such as state and lifecycle methods.
• We must import Hooks from react.
• Make sure you have the latest version of Node installed. If not head over to
https://nodejs.org/en/download to download the LTS (Long Term Support) version of Node.
• Make sure you have the latest version of VSCode installed. If not, head over to
https://code.visualstudio.com/download to download the version for your platform.
• Open a Terminal or command prompt and navigate to the directory where you want to create your
React project
• Create a Vite app by running the following command in your Terminal or Command Prompt:
npm create vite@latest my-react-app --template react
• The first time, you won't have Vite installed. Type y to proceed. Then you'll be asked to select a
framework. Use your down arrow to select React.
• You'll be asked to select a variant, select Javascript.
• Then wait for the installation to finish, this will take a few minutes.
Setting Up Your Development
Environment
• Change directory to the new app that we built.
cd my-react-app
• Install dependencies:
npm install
• When npm has installed all the necessary packages, open project folder in VS Code. We
should see a node modules folder
• Start the development server:
npm run dev
• Open the app in browser by heading over to the local address shown. It's usually at
http://localhost:5173/
• We can now work on this local version and Vite will automatically recompile our code as
we make changes.
Using CodeSandBox
https://codesandbox.io/
GDG Workshop on React (By Aakanksha Rai)
NOW IT’S TIME FOR US TO
START WITH OUR REACT PROJECT
~WeatherNow~
Thank You For
Attention
See You Next Time
https://www.linkedin.com/in/aakanksha-rai-
454912249/
https://codesandbox.io
https://openweathermap.org/current
https://openweathermap.org/current#geocoding
Ad

More Related Content

Similar to GDG Workshop on React (By Aakanksha Rai) (20)

Introduction to React native
Introduction to React nativeIntroduction to React native
Introduction to React native
Dhaval Barot
 
React js Online Training
React js Online TrainingReact js Online Training
React js Online Training
Learntek1
 
React-Js-Online-Training-9028522.ppsx
React-Js-Online-Training-9028522.ppsxReact-Js-Online-Training-9028522.ppsx
React-Js-Online-Training-9028522.ppsx
Kulbir4
 
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
 
Welcome to React.pptx
Welcome to React.pptxWelcome to React.pptx
Welcome to React.pptx
PraveenKumar680401
 
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Zach Lendon
 
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
MidwestJS 2014 Reconciling ReactJS as a View Layer ReplacementMidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
Zach Lendon
 
learning react
learning reactlearning react
learning react
Eueung Mulyana
 
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
 
Progressive Web Apps and React
Progressive Web Apps and ReactProgressive Web Apps and React
Progressive Web Apps and React
Mike Melusky
 
Javascript frameworks
Javascript frameworksJavascript frameworks
Javascript frameworks
RajkumarJangid7
 
slides.pptx
slides.pptxslides.pptx
slides.pptx
HarshitJain302462
 
slides.pptx
slides.pptxslides.pptx
slides.pptx
HafidzIhzaPratama
 
React_Introwvq2t2e2ewqtwtq31tef12duction.pptx
React_Introwvq2t2e2ewqtwtq31tef12duction.pptxReact_Introwvq2t2e2ewqtwtq31tef12duction.pptx
React_Introwvq2t2e2ewqtwtq31tef12duction.pptx
BRIJESHKRSINGH
 
React vs angular what to choose for your app
React vs angular what to choose for your appReact vs angular what to choose for your app
React vs angular what to choose for your app
Concetto Labs
 
O365 Developer Bootcamp NJ 2018 - Material
O365 Developer Bootcamp NJ 2018 - MaterialO365 Developer Bootcamp NJ 2018 - Material
O365 Developer Bootcamp NJ 2018 - Material
Thomas Daly
 
Webpack/Parcel: What’s Happening Behind the React App?
Webpack/Parcel: What’s Happening Behind the React App?Webpack/Parcel: What’s Happening Behind the React App?
Webpack/Parcel: What’s Happening Behind the React App?
Talentica Software
 
slides oif mlsa oigf fhdhd cgdgd gggd bdg.pptx
slides oif mlsa oigf fhdhd cgdgd gggd  bdg.pptxslides oif mlsa oigf fhdhd cgdgd gggd  bdg.pptx
slides oif mlsa oigf fhdhd cgdgd gggd bdg.pptx
PRINCEOJHA11
 
Installing Webpack with React JS from Scratch.pdf
Installing Webpack with React JS from Scratch.pdfInstalling Webpack with React JS from Scratch.pdf
Installing Webpack with React JS from Scratch.pdf
Sufalam Technologies
 
data science course in bangalore|data analyst course in bangalore
data science course in bangalore|data analyst course in bangaloredata science course in bangalore|data analyst course in bangalore
data science course in bangalore|data analyst course in bangalore
EsgbnmkPhcm
 
Introduction to React native
Introduction to React nativeIntroduction to React native
Introduction to React native
Dhaval Barot
 
React js Online Training
React js Online TrainingReact js Online Training
React js Online Training
Learntek1
 
React-Js-Online-Training-9028522.ppsx
React-Js-Online-Training-9028522.ppsxReact-Js-Online-Training-9028522.ppsx
React-Js-Online-Training-9028522.ppsx
Kulbir4
 
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
 
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Reconciling ReactJS as a View Layer Replacement (MidwestJS 2014)
Zach Lendon
 
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
MidwestJS 2014 Reconciling ReactJS as a View Layer ReplacementMidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
MidwestJS 2014 Reconciling ReactJS as a View Layer Replacement
Zach Lendon
 
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
 
Progressive Web Apps and React
Progressive Web Apps and ReactProgressive Web Apps and React
Progressive Web Apps and React
Mike Melusky
 
React_Introwvq2t2e2ewqtwtq31tef12duction.pptx
React_Introwvq2t2e2ewqtwtq31tef12duction.pptxReact_Introwvq2t2e2ewqtwtq31tef12duction.pptx
React_Introwvq2t2e2ewqtwtq31tef12duction.pptx
BRIJESHKRSINGH
 
React vs angular what to choose for your app
React vs angular what to choose for your appReact vs angular what to choose for your app
React vs angular what to choose for your app
Concetto Labs
 
O365 Developer Bootcamp NJ 2018 - Material
O365 Developer Bootcamp NJ 2018 - MaterialO365 Developer Bootcamp NJ 2018 - Material
O365 Developer Bootcamp NJ 2018 - Material
Thomas Daly
 
Webpack/Parcel: What’s Happening Behind the React App?
Webpack/Parcel: What’s Happening Behind the React App?Webpack/Parcel: What’s Happening Behind the React App?
Webpack/Parcel: What’s Happening Behind the React App?
Talentica Software
 
slides oif mlsa oigf fhdhd cgdgd gggd bdg.pptx
slides oif mlsa oigf fhdhd cgdgd gggd  bdg.pptxslides oif mlsa oigf fhdhd cgdgd gggd  bdg.pptx
slides oif mlsa oigf fhdhd cgdgd gggd bdg.pptx
PRINCEOJHA11
 
Installing Webpack with React JS from Scratch.pdf
Installing Webpack with React JS from Scratch.pdfInstalling Webpack with React JS from Scratch.pdf
Installing Webpack with React JS from Scratch.pdf
Sufalam Technologies
 
data science course in bangalore|data analyst course in bangalore
data science course in bangalore|data analyst course in bangaloredata science course in bangalore|data analyst course in bangalore
data science course in bangalore|data analyst course in bangalore
EsgbnmkPhcm
 

Recently uploaded (20)

Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
Lynda Kane
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
 
"PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System""PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
 
Salesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docxSalesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docx
José Enrique López Rivera
 
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Enhancing ICU Intelligence: How Our Functional Testing Enabled a Healthcare I...
Impelsys Inc.
 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
 
Procurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptxProcurement Insights Cost To Value Guide.pptx
Procurement Insights Cost To Value Guide.pptx
Jon Hansen
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
#AdminHour presents: Hour of Code2018 slide deck from 12/6/2018
Lynda Kane
 
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdfSAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
SAP Modernization: Maximizing the Value of Your SAP S/4HANA Migration.pdf
Precisely
 
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5..."Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
"Client Partnership — the Path to Exponential Growth for Companies Sized 50-5...
Fwdays
 
"PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System""PHP and MySQL CRUD Operations for Student Management System"
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
 
Cyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of securityCyber Awareness overview for 2025 month of security
Cyber Awareness overview for 2025 month of security
riccardosl1
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Role of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered ManufacturingRole of Data Annotation Services in AI-Powered Manufacturing
Role of Data Annotation Services in AI-Powered Manufacturing
Andrew Leo
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc Webinar: Consumer Expectations vs Corporate Realities on Data Broker...
TrustArc
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Hands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordDataHands On: Create a Lightning Aura Component with force:RecordData
Hands On: Create a Lightning Aura Component with force:RecordData
Lynda Kane
 
Salesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docxSalesforce AI Associate 2 of 2 Certification.docx
Salesforce AI Associate 2 of 2 Certification.docx
José Enrique López Rivera
 
Ad

GDG Workshop on React (By Aakanksha Rai)

  • 1. EXPLORING THE WORLD OF WEB DEVELOPMENT WITH REACT Google Developer Student Clubs With Aakanksha Rai GDG LNCTS - AIML Lead Tech Winter Break – Web Development Workshop
  • 2. • Introduction to Full Stack Development • Roadmap for MERN Stack Development • Trending Web Frameworks in 2024 • What is React • Why React • Understanding some major topics of React • Setting up your development environment • React Project building • Q/A Session Agenda
  • 3. Introduction to Web Development • FRONTEND : The part of the website that users see and interact with. This includes the design, menus, text, images, videos, and overall layout. • BACKEND : The server-side logic that controls the frontend and manages the data and infrastructure of the website. • DATABASE: The storage and retrieval system for the website's data. Backend developers use databases to store, retrieve, and manipulate data.
  • 4. Roadmap for MERN Stack Development
  • 5. Trending Web Frameworks among Developers according to Stackoverflow in 2024
  • 6. What is React • React is a JavaScript library for building user interfaces (UI), primarily for single- page applications (SPAs). • Developed by Meta (formerly Facebook), React helps developers create interactive and dynamic web applications by enabling the creation of reusable UI components. • UI is broken down into reusable components, making development efficient and maintainable • React uses JSX, a syntax extension allowing developers to write HTML-like code within JavaScript. • React uses a virtual representation of the DOM to optimize updates, improving performance.
  • 9. • JSX = JavaScript Extension Syntax • It let’s us write HTML directly inside JS. • “Babel” converts code written by us in JSX to JavaScript to be displayed on browser. • Writing markup in JSX: 1. Return a ssingle root element 2. Close all the tags 3. camelCase most of the things • We can use curly braces {} in JSX to open a window to JavaScript. • Example: What is JSX
  • 10. React Component • Components are independent and reusable bits of code. • They serve the same purpose as JavaScript functions, but work in isolation and return HTML. • There can be two types of components: Class Component Function Component
  • 11. React Props • Props are arguments passed into React components. • Props stands for properties. • React Props are like function arguments in JavaScript and attributes in HTML. • Props are passed to components via HTML attributes • Example:
  • 12. What is a Hook • Hooks were added to React in version 16.8. • Hooks allow function components to have access to state and other React features. Because of this, class components are generally no longer needed. • Hooks allow us to "hook" into React features such as state and lifecycle methods. • We must import Hooks from react.
  • 13. • Make sure you have the latest version of Node installed. If not head over to https://nodejs.org/en/download to download the LTS (Long Term Support) version of Node. • Make sure you have the latest version of VSCode installed. If not, head over to https://code.visualstudio.com/download to download the version for your platform. • Open a Terminal or command prompt and navigate to the directory where you want to create your React project • Create a Vite app by running the following command in your Terminal or Command Prompt: npm create vite@latest my-react-app --template react • The first time, you won't have Vite installed. Type y to proceed. Then you'll be asked to select a framework. Use your down arrow to select React. • You'll be asked to select a variant, select Javascript. • Then wait for the installation to finish, this will take a few minutes. Setting Up Your Development Environment
  • 14. • Change directory to the new app that we built. cd my-react-app • Install dependencies: npm install • When npm has installed all the necessary packages, open project folder in VS Code. We should see a node modules folder • Start the development server: npm run dev • Open the app in browser by heading over to the local address shown. It's usually at http://localhost:5173/ • We can now work on this local version and Vite will automatically recompile our code as we make changes.
  • 17. NOW IT’S TIME FOR US TO START WITH OUR REACT PROJECT ~WeatherNow~
  • 18. Thank You For Attention See You Next Time https://www.linkedin.com/in/aakanksha-rai- 454912249/