The fastest way to create react app with Vite

Mohit Kumar Srivastava
2 min readFeb 28, 2023

--

Step-by-Step Guide to Creating a React App with Vite.

Vite has some advantages over the traditional create-react-app like faster development, smaller bundle sizes, etc.

In this blog, we will create a react app with Vite.

This guide assumes that you have Node installed on your machine.

Let's start by going to the workspace folder through the terminal and using the following command.

npm create vite@latest

You can set your project name here. This will show a few options for the framework and variant.

For the framework, we can choose React and Typescript as variants.

This will create a project with the provided details.

You need to get into the project directory and run:

npm install

to install node_modules and start the development server.

npm run dev

That’s it. You have your react server up and running.

You will see something like this on your terminal.

And something like this when you go to the local URL.

Stay tuned for more such blogs!

How has your experience been with create-react-app and Vite?

--

--