Create a new folder in vscode.
Open in integrated terminal
Use following commands:
npm create vite@latest
enter project name
select react framwork and javascript variant
cd project_name
npm install
npm run dev
Copy localhost link and paste into browser.
Delete index and copy App.css, App.jsx and Main.jsx