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
- Use
npm install package-name
same as any other npm package installation - Import the component or hook as exported from the package
- If there is css bundle in the package, to see the css changes add the
link
tag with path to the css file innode_modules
to thehtml
container file (Referindex.html
)