React Js
Aug 3, 2023
React, also known as React.js, is an open-source JavaScript library developed by Facebook. React uses an HTML-in-JavaScript syntax called JSX (JavaScript and XML).
Type of React
- Functional React
- Class React
Way to create a React.
- Open a folder on your desktop.
- Install Yarn and node on your System.
- Open the folder with Vscode.
- Open your terminal.
- write yarn create vite
- put your folder name the cd the name of the folder.
- then yarn install after then yarn run dev
Prop
Props are arguments passed into React components.
React Conditional Rendering
- if Statement
- logical operetor &&
- tenary operator (true:false)