Support JSX classname (without calling classNames())
fsubal opened this issue · comments
fsubal commented
💡 Idea
// Currently supported
<div className={classNames('a', 'b')} />
<div className={classNames('a')} />
// Should be supported
<div className="a" />
// Out of scope
<div className="a b" />
fsubal commented
It can interfere gradual adoption of tailwind ( For example, some part of codebase is written in tailwind, but others are not ).
Maybe it's better to enforce to always wrap with classNames()
, if it is intended to be a tailwind classname ( That's more explicit ).