There are various ways to bootstrap a react project locally. Vite is the most widely used one today.
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:
npm create vite@latest
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
}
}
});
