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
I suppose, most of the times there will be some design anyway, which is better to build as a separate component without direct binding of the effector units
Support for this feature will require somewhat complicated types and i'm not sure it is worth it
@AlexandrHoroshih answering your question - in order to do less view library-specific stuff (like refs forwarding, types etc.), Tailwind users sometimes don't create components but instead just compose classes and apply them to regular HTML elements
So it can be like this:
Activity
AlexandrHoroshih commentedon Mar 31, 2023
Is this actually a common case? 🤔
I suppose, most of the times there will be some design anyway, which is better to build as a separate component without direct binding of the effector units
Support for this feature will require somewhat complicated types and i'm not sure it is worth it
Kelin2025 commentedon Jun 13, 2023
@AlexandrHoroshih answering your question - in order to do less view library-specific stuff (like refs forwarding, types etc.), Tailwind users sometimes don't create components but instead just compose classes and apply them to regular HTML elements
So it can be like this:
And combined with some utilities
This way you have fully declarative, isomorphic code, which can be ported to any view library just by replacing
cvaandreflectimportsAlexandrHoroshih commentedon Dec 27, 2023
Released in 9.0.0 as
fromTaghelper