DEV Community

Syed Maaz Saeed
Syed Maaz Saeed

Posted on

Setting Up a React Application

  1. Install Node.js:

If you haven't already, download and install Node.js from Node.js website.

  1. Create a React App:

Open your terminal and run the following command to create a new React app using Create React App:
npm create vite@latest / npm init vite@latest my-vite-project

  1. Navigate to the Project Directory:

Move into the newly created Vite project directory using the terminal:

cd my-vite-project

  1. Install Dependencies:

Inside the project directory, install the project dependencies using npm:

npm install

  1. Run React App at localhost:

Launch the development server provided by Vite to begin development:

npm run dev

Top comments (0)