1. Create React Project
npx create-react-app my-project
cd my-project
2. Install Tailwind CSS
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
3. Configure your template paths
add the following code to your `tailwind.config.js` file:
content: [
"./src/**/*.{js,jsx,ts,tsx}",
],
4. Add the Tailwind directives to your CSS
add the following code to your `./src/index.css` file:
@tailwind base;
@tailwind components;
@tailwind utilities;
5. Start your build process
npm run start