npm create vite@latest
Used other template then selected ssr-react-swc and then TypeScript
npm install
npm run dev
npm run build
npm run preview
npm install react-router-dom
Used this example to achieve routing https://github.com/remix-run/react-router/tree/main/examples/ssr-data-router