Menu

Environment Set-up

Environment Set-up

Follow these steps to set up the React application with Vite, Tailwind CSS, and MUI DatePicker:

Step 1: Create a React Application Using Vite

First, create a new project folder and open it in VS Code.

  • Open the terminal and run:

npm create vite@latest

  • Then move into the project folder by running this command:

cd Age_Calculator    (cd <Your Project Name>)

  • 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:

http://localhost:5173/

Step 2: Install Tailwind CSS

Install and configure Tailwind CSS by following the official Vite installation guide: Get Started

Step 3: Install MUI DatePicker Dependencies

To use the MUI DatePicker, install the following packages:

dayjs

@mui/x-date-pickers

@mui/material

@emotion/react

@emotion/styled

Install them using this command:

npm i dayjs @mui/x-date-pickers @mui/material @emotion/react @emotion/styled