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
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:5173 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Builds the app for production to the dist
folder.\
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Testing the app locally. The vite preview command will boot up a local static web server that serves the files from dist at http://localhost:4173
See documentation about more information https://vite.dev/guide/static-deploy.html#testing-the-app-locally
To learn React, check out the React documentation.