This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
npm install json-server concurrently
"proxy": "http://localhost:6001", "scripts": { "server": "json-server --watch db.json --port 6001", "devserver": "concurrently "npm run server" "npm run dev"" }
npm install react-share
npm run devserver