Using configuration file to store TailwindCSS classes
I'm using a configuration file to store tailwind classes. The idea is to make a dynamic component and simply call the class from configuration file base prop call on a component.
It's not conventional but aside from using multiple if elses, I'd prefer this method more. Are there any cons for this implementation? Can you suggest a better way to do this?