Allow array of string on classList
#1389
SuspiciousLookingOwl
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How about making
classList
accepts array of string? for examplewill be the same as
This is useful if you have a lot of classes on an element, for example with tailwind:
can be written as
Even better if we can mix array of string with array of objects (with the original functionality of
classList
), for examplecan be written as
or
Beta Was this translation helpful? Give feedback.
All reactions