G
G
Gimir2020-02-15 21:03:42
React
Gimir, 2020-02-15 21:03:42

Is it bad practice to use styled-components and css modules in the same project in React?

Good evening, if I style components using styled-components, and for example, I need to use css classes in one of the components (for example, for a dropdown menu, so that the class is added on click), will this not be an unnecessary complication of the project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Chernov, 2020-02-16
@DRIMchansky

Nothing terrible will happen, but the whole styled-components thing hints that it is better to implement using props

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question