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
Though the classList prop on native elements has been presented in the docs as an alternative to using a classnames helper like clsx, it is now considered regrettable—see the conversation around this Discord message. Essentially, it places more burden on TS typing and library maintenance, without much upside.
The solid/prefer-classlist rule has been autofixing helpers to classList, pushing people in the wrong direction. I wouldn't go so far as to start autofixing the other way, as users may not have classnames helpers available, but we should at least remove the rule from recommended configs and possibly deprecate it.
The text was updated successfully, but these errors were encountered:
Though the
classList
prop on native elements has been presented in the docs as an alternative to using a classnames helper likeclsx
, it is now considered regrettable—see the conversation around this Discord message. Essentially, it places more burden on TS typing and library maintenance, without much upside.The
solid/prefer-classlist
rule has been autofixing helpers toclassList
, pushing people in the wrong direction. I wouldn't go so far as to start autofixing the other way, as users may not have classnames helpers available, but we should at least remove the rule from recommended configs and possibly deprecate it.The text was updated successfully, but these errors were encountered: