Answer the question
In order to leave comments, you need to log in
How to describe nested styles in JSS?
There is a markup consisting of three levels of nesting:
<div className={classes.wrapper}>
wrapper
<h1 className={classes.hello}>
Hello
<a className={classes.world} href="#">
world
</a>
</h1>
</div>
wrapper: {
background: "red",
color: "blue"
},
hello: {
color: "green"
},
world: {
color: "magenta"
}
.wrapper {
background: "red",
color: "blue"
.hello {
color: "green"
.world {
color: "magenta"
}
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question