I'm using tailwindcss in a React project.
I call classes in this way :
<p className="text-gray-600 text-base-14">
<Link to="/code">{props.name}</Link>
</p>
In fact sometimes I need many classes ( 15 -20 ) and It's not good practice to write them in JS file.
In Nuxt.js I was using in :
<style type="postcss">
.prg{
@apply text-gray-600;
@apply text-base-14;
}
</style>
Then I use the class prg in the component ( Vue component )
I tried the same on React but it does not work!
<p className="prg">
<Link to="/code">{props.name}</Link>
</p>
What's the issue?