First you have to install npm - npm i then use 2 terminal one for react and another for data.json for react use - npm run dev for data.json - json-server --watch data.json --port 3001
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