You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Proposal: combining classes using only className #154
Activity
rafikalid commentedon Nov 10, 2022
I propose in general to compile duplicated attributes to arrays as follow:
and
fabiospampinato commentedon Jan 20, 2023
This is a problem that must be solved at the framework level, React is just giving you a very basic API for setting classes, that's the problem.
drwpow commentedon Jun 7, 2025
I personally am a big fan of Svelte’s approach, allowing not only classname combining but with easy conditions built in:
https://svelte.dev/playground/ca01d7704d2e411bbe9a9911de6ea8bb?version=5.33.16