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
Wouldn't JSX compiler freak out seeing {} inside a JSX tag ? And what if I want to use
p{
color: {`theme().color`}}
how will your change support that ?
I personally feel that using template string is the right way as it allows you to extract it to variable(s), which would likely be the case if you have more than 4-5 style rules. The above convenience doesn't serve much purpose and would require a lot of change to the babel plugin IMO.
Why don't we use the familiar syntax like this:
But this:
The text was updated successfully, but these errors were encountered: