I'm using TailwindCSS in a React Project. I'm able to style normal HTML elements by passing TailwindCSS utility classes in the className attribute but this doesn't work when I pass the utility classes inside a components className attribute like this:
<Dropdown className="hidden sm:block sm:ml-6"/> Dropdown is a React component imported into another component.
How do I make this work?
index.jsof my React project.