Is lit support emotionjs ? #3250
Replies: 1 comment 1 reply
-
This should work for for standalone I can't say with confidence what the performance impact might be. Using an expression instead of a hardcoded string as class introduces an extra check, but I'd imagine the impact would be minimal if the class is the same. This is, of course, not considering whatever performance cost of actually calling emotion's One caveat is Here's it working in the playground. https://lit.dev/playground/#gist=ca3cccb33d1f17dd6571a6ef7012f3d1 |
Beta Was this translation helpful? Give feedback.
-
In this case, Which way will lit treate the class propetity? dynamic or static ?
I prefer css-in-js for my css solution, I wonder will this cause performance problems, thanks!
Beta Was this translation helpful? Give feedback.
All reactions