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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay