DEV Community

Kudzai Murimi
Kudzai Murimi

Posted on • Updated on

Tailwind not working in React-App

Many people come across a challenge where tailwind css will not be working in a react-app. I have come up with the solution after having same challenge for so many times, I got a permanent solution.

Just add the following code to your

tailwind.config file

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ['./src/**/*.{js,jsx,ts,tsx}'],
  theme: {
    extend: {},
  },
  plugins: [],
};
Enter fullscreen mode Exit fullscreen mode

Done.Happy! T

Top comments (1)

Collapse
 
fullstackscout profile image
Gary

Thanks!