DEV Community

Discussion on: A simple strategy for structuring TailwindCSS classnames

Collapse
 
wheelmaker24 profile image
Nikolaus Rademacher

Right, forgot about twin.macro. But with this you could also end up having cluttered components, wouldn't you?

Collapse
 
mohdahmad1 profile image
Mohd Ahmad

I use Framer Motion. Each of my elements look like

<motion.anyElementName />
Enter fullscreen mode Exit fullscreen mode

This is messy, with styled-components it become easier I can use

<appropriateComponentName />
Enter fullscreen mode Exit fullscreen mode