There are various ways to bootstrap a react project locally. Vite is the most widely used one today.

Vite

Ref - https://vite.dev/guide/

Vite (French word for "quick", pronounced /vit/, like "veet") is a build tool that aims to provide a faster and leaner development experience for modern web projects. It consists of two major parts:

Intializing a react project

npm create vite@latest

WLS problem to fix hot reload

In vite.config.js file

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

export default defineConfig({
  plugins: [react()],
  server:{
  hmr:true,
    watch:{
      usePolling:true,
      interval: 1000
    }
  }
});

image.png

2. Components