DEV Community

Discussion on: Tailwind CSS: My experience in 2022

Collapse
 
lifeiscontent profile image
Aaron Reisman

If you're using React, you can hide away the jumbled CSS in a UI Component, that way all styling is encapsulated within the component, and you don't have dangling classNames all over the codebase.

Example here: gist.github.com/lifeiscontent/84bb...

Collapse
 
somtookaforr profile image
Somtochukwu Okafor

Thank you @lifeiscontent , so basically CSS in JS components ..like Styled Components? I'll check out the example.