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
It works perfectly fine. But I feel like I read somewhere before that if we return big string templates from a function - it's better to wrap them into css. Also, my IDE (WebStorm) doesn't highlights such css code until I wrap it into css like this:
My question is: is there any sense to use this css wrapper for strings that are returned from styles getter function? Probably there are some performance benefits?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I use @emotion/react, like this:
It works perfectly fine. But I feel like I read somewhere before that if we return big string templates from a function - it's better to wrap them into
css
. Also, my IDE (WebStorm) doesn't highlights such css code until I wrap it intocss
like this:My question is: is there any sense to use this
css
wrapper for strings that are returned from styles getter function? Probably there are some performance benefits?Appreciate for any help.
Beta Was this translation helpful? Give feedback.
All reactions