use nesting classes with @emotion/css #2611
Unanswered
mh-alahdadian
asked this question in
Q&A
Replies: 1 comment 3 replies
-
In general, we do not recommend this because we believe that styles nesting is very often a maintainability problem in the long run. So there is nothing to make interpolating class names like this easier. In fact, this might break very easily if you are using <div className={Container}>
<h1 className={cx(Title, otherStyles)} />
</div> In here, the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I am using
@emotion/css
and I wants to use nesting selectors feature but bellow code is not workingbecause Title is the className string and needs a
.
before className so I need to add dot manually like thisIs there a way to handle this automatically with babel-macro version ?
thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions