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 create vite@latest
npm install npm run dev
we need to follow this major steps
npm install --save aos@next
import React,{useEffect} from "react"; import AOS from 'aos'; import 'aos/dist/aos.css';
useEffect(() => { AOS.init(); }, [])
npm install -D tailwindcss postcss autoprefixer npx tailwindcss init -p
npm install react-icons --save