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 -D tailwindcss postcss autoprefixer
-
npx tailwindcss init -p
-
Add the Tailwind directives to your CSS
-
Add the @tailwind directives for each of Tailwind’s layers to your ./src/index.css file
@tailwind base; @tailwind components; @tailwind utilities;
-
- npm i react-icons