Spaces:
Runtime error
Runtime error
|
Download frontend-react/README.md from Amitkasar/ai-api-testing: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/spaces/Amitkasar/ai-api-testing/resolve/main/frontend-react/README.md
- Command line
-
hf download hf://spaces/Amitkasar/ai-api-testing/frontend-react/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Amitkasar/ai-api-testing/resolve/main/frontend-react/README.md
1.32 kB
| # React + Vite | |
| 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](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Oxc](https://oxc.rs) | |
| - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) | |
| ## Getting Started | |
| To get the project running locally, follow these steps: | |
| 1. **Install Dependencies**: | |
| ```bash | |
| npm install | |
| ``` | |
| *Note: If you encounter dependency conflicts, use `npm install --legacy-peer-deps`.* | |
| 2. **Run the Development Server**: | |
| ```bash | |
| npm run dev | |
| ``` | |
| ## React Compiler | |
| The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). | |
| ## Expanding the ESLint configuration | |
| If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project. | |