react step by step basic execution Day-1
Thu Nov 30 2023 19:50:30 GMT+0000 (Coordinated Universal Time)
Saved by
@nistha_jnn
#react.js
step1-node -v to see the version of nodejs
step2-npx create-react-app nisthaapp
step3-cd nisthaapp
step4-npm run start
step5-delete those files which are not in work
setuptest.js in src,reportwebvitals in src,logo.svg in src,apptest in src,app.css in src
step6-go in index.js and remove delete files from include section
step7-same for app.js
step8-new app.js
function App() {
return (
<div>
<h1>
chai or react
</h1>
</div>
);
}
export default App;
jo bhi project hum npx create-react-app se bnate h vo bhut jyada bulky hote h.isliye ab hum vite use krte h.vite ek bundler h
step1-npm create vite@latest
step2-set configuration
step3-cd projectname
step4-iss process mai node modules nhi hote isliye alag se install krne pdenge
command-npm i
step5-delete those files which are not in work
step6-go in index.js and remove delete files from include section
step7-same for app.js
step8-new app.js
content_copyCOPY
packet.json is the starting point.so start understanding from it
build folder ki deploy hota h.command-npm run build
Comments