How to Create a React App Using Vite (Step-by-Step Guide for Beginners)

Published: (December 16, 2025 at 07:34 PM EST)
1 min read
Source: Dev.to

Source: Dev.to

Introduction

This guide walks beginners through creating and running their first React application using Vite, the officially recommended method.

Prerequisites

Steps to Create a React App with Vite

1. Create a new Vite project

npm create vite@latest project-name

When prompted, press y to proceed.

2. Choose the framework

  • Use the Up/Down arrow keys to select React from the list.
  • Press Enter to confirm.

3. Select a variant

  • Choose the desired React variant (e.g., react, react-ts).
  • Navigate with the Up/Down arrow keys and press Enter.

4. Enable TypeScript (optional)

If asked whether to add TypeScript support, select Yes and press Enter.

5. Install dependencies and start the development server

cd project-name
npm install
npm run dev

Your app will be available at http://localhost:5173. Click the link or open it in a browser to view the running application.

Alternative (Deprecated) Method

npx create-react-app my-app

Note: create-react-app is deprecated and no longer the recommended way to start a new React project. Prefer Vite for a faster, more modern setup.

Back to Blog

Related posts

Read more »

Preferred Web Tech Stacks in Australia

Why Tech Stack Selection Matters in Australia Australian businesses prioritize quality, security, and performance. Websites are expected to work seamlessly acr...

React using Calculator

Today i completed one of the pratice project on React Using calculator.This React Calculator application performs basic arithmetic operations. It supports butto...