Setup React 18

info
Node

Important: Install Node first

Use Vite to create a new React project

npm init vite@latest MY_NEW_APP -- --template react-ts
cd MY_NEW_APP
npm install
npm run dev

install react-router-dom

npm install --save react-router-dom @types/react-router-dom

UI library (MUI)

Add a UI library to get started quickly

npm install --save @mui/material @mui/icons-material @emotion/react @emotion/styled
info
MUI

Run it

npm start