Genlab IB
Genlab IB
REACT JS
BASICS
Internship Program
TABLE OF CONTENT
lets dive into React js basics
pre-requisites
Node.js installation
Components
JSX
Next steps.....
PRE- REQUISITES
HTML
CSS
JAVASCRIPT
GITHUB
NPM
NODE.JS
Lets Quickly Revise
JS Topics
Destructuring Async/Await
Spread and Rest
Map, Filter, and Reduce
Operators (...)
Conditional Rendering
Modules (Import and
Export)
NODE INSTALLATION
DOWNLOAD NOW
Create the React App with Vite
npm create vite@latest my-react-app
Install Dependencies
cd my-react-app
npm install
Example
Returning JSX :
Explanation:
<h1>Hello, {name}!</h1> looks like HTML but is actually JSX.
{name} is a JavaScript expression, and the curly braces allow
embedding dynamic values.
Important Rules in JSX :
className in JSX :
In JSX, you must use className instead of class because class is
a reserved keyword in JavaScript.
Self-Closing Tags
Keep Learning!!!