trying to use tailwindcss with react
I installed tailwind already but yet cant see its effect in my react code.
Used tailwind documentations yet no changes
created a tailwind.config.js file, did this as well
@tailwind base;
@tailwind components;
@tailwind utilities;
2
Answers
First step:
Second step:
Third step, paste this in content in
tailwind.config.js
file:Fourth step, paste these in your CSS file, then import CSS to your JS or JSX file:
Follow the tailwind docs carefully, and do all the steps below:
tailwind.config.js
fileTailwind CLI
build processAfter do all of this, you can use Tailwind’s utility classes in your project