Answer the question
In order to leave comments, you need to log in
Styled components and className?
Is it ok to combine Styled-components and className , for example, use SC for the parent element, and mark all nested elements with className.
It will turn out like this
const List = styled.div`
list style;
.list-title {
}
.list-item {
}
`
const List = styled.div`
list style;
`
const ListTitle = styled.div`
title style;
`
const ListItem = styled.div`
item style;
`
Answer the question
In order to leave comments, you need to log in
Or is it better
The second option is better, otherwise what's the point of this
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question