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: [],
};
Done.Happy! T
Top comments (1)
Thanks!