"Vite React Tutorial: Launch Your First React App in 5 Simple Steps"

1 min read
Table of contents

step1 : install vite react app using codes in vite site → “npm create vite@latest”
step2 : clean the folders only keep the required files;
important folders in SRC :
App.jsx
index.js
Your.jsx → this is your own made jsx file for exporting components
step3 : you can even run your app using
“npm run dev “
dev ; because in the package . json file there is “dev“ in script for running ;
it can differ in “CREATE REACT APP“ and other than vite-App
!! precautions !!
for Component export
i. use “ .jsx “ instead of “.jx”
ii. use <Filename> instead <filename>
your 1st react app is ready :)
0
Subscribe to my newsletter
Read articles from Pushpesh Pandey directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
