DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Discussion on: A simple strategy for structuring TailwindCSS classnames

Collapse
wheelmaker24 profile image
Nikolaus Rademacher Author

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

Collapse
zakiazfar 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