- Home
- Javascript
- Project Set-up
Project Set-up
Contents
Project Set-up
Set up the environment first by creating a React project with Vite, then install Tailwind CSS:
Step 1: Create a React project with Vite
Start by creating a new project folder and opening it in VS Code.
- Open the terminal and run:
npm create vite@latest
- Then move into the project folder by running this command:
cd "Expandable Accordion" (cd <Your Project Name>)
Please Note:
Here, we have used quotes (“ ”) when the folder name contains spaces to ensure it is treated as a single path.
- For installing dependencies, run:
npm install
- Start the development server through this command:
npm run dev
- After running npm run dev, your project will be live on your local host at:
Step 2: Install Tailwind CSS
Set up and configure Tailwind CSS by following the official Vite installation guide: Get Started
Expandable Accordion Component using React
AP










