Create React app using Vite in just 2 minutes
Creating a React app using Vite is a quick and easy process. In just 2 minutes, you can have a fully functioning React app up and running using Vite.
Install React app
To get started, you’ll need to have Node.js installed on your machine. Once you have Node.js installed, you can install the Create React app using the following command:
npm init @vitejs/app
This command will create a new directory with the necessary files and dependencies to run a React app using Vite.
Running your React app
Once the installation process is complete, you can navigate to the new directory created and run the following command to start your React app:
cd your-new-directory
npm run dev
After running this command, you should see a message in your console indicating that your React app is now running on a local server. You can now open a browser and navigate to http://localhost:3000 to view your React app in action.
Creating a React app using Vite is a fast and efficient way to get up and running with React development. With just a few simple commands, you can have a fully functioning React app ready to go. Happy coding!
Thanks buddy