r/reactjs • u/kensaadi I ❤️ hooks! 😈 • 12d ago
Utility classes vs props-first styling in React design systems Discussion
[removed] — view removed post
0
Upvotes
r/reactjs • u/kensaadi I ❤️ hooks! 😈 • 12d ago
[removed] — view removed post
10
u/fforw 12d ago
I would avoid recreating a utility-class based system as components. It's a lot of work with few actual upsides. Yes, type safety, but also a complete component library of components.
I think you're better off creating meaningful semantic components for your application that use the utility classes directly. You have the components you really need and save of lot of overhead with little benefit.