This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
npm install react-router-dom
created 2 components Create and Edit
Setting up the routes for Create and Edit 1. Import BrowserRouter,Routes,Route from react-router-dom 2. Import create and edit componenets 3. Add path and element(component) in Route
https://react-bootstrap.netlify.app/docs/getting-started/introduction
npm install react-bootstrap bootstrap
add import 'bootstrap/dist/css/bootstrap.min.css'; in Main.jsx
//Mutable // let a = [1,2,3,4,5] // let b = a // shallow copy // b.pop() // console.log(a)
// let a = { // name:"Naga" // } // let b = {...a} // b.name = 'Raghav' // console.log(a)
//Immutable // let a = [1,2,3,4,5] // let b = [...a] //deep copy // b.pop() // console.log(b) // console.log(a)