Answer the question
In order to leave comments, you need to log in
Overriding styles in dangerouslySetInnerHTML?
There is a component in React that receives markup from the server in the form of HTML - it is filled in through the editor in the admin panel, it looks like this
But when I insert html
<Section
dangerouslySetInnerHTML={{
__html: description
}}
/>
Answer the question
In order to leave comments, you need to log in
Alternatively, use styles.module.(css|sass|scss), then each class will be unique and inimitable, and styles will not override your styles, BUT there is a minus you will have to rewrite all files to .module.css
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question