I am very new to react and tailwind. Here is what i am trying to accomplish in pseudo code:
<Component className={aFunction(), 'some-tailwind-code'}></Component>
How would i accomplish this?
ive been trying to search around the internet but cant find anything because i cant word my question correctly.
2
Answers
Well you can use clsx
npm install --save clsx
Import to your project
import clsx from 'clsx';
to accomplish what you want you can use clsx package to concatenate classNames.
In your code, it would be :