Allow lists in class #962
TiagoCavalcante
started this conversation in
Ideas
Replies: 1 comment
-
This might be of interest. This PR only looks at the runtime portion and there are compiler implications. Especially when it comes to optimization. I think to support this we'd need to move towards having only a single |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
In React the following pattern is pretty common:
And then I discovered SolidJS had
classList
, but to say the truth I got a bit disappointed when I discovered it wasn't for what I expected, and it give me an idea: why not allow a list of strings along with a single string in class?Beta Was this translation helpful? Give feedback.
All reactions