D
D
Daniil2018-07-02 19:13:03
React
Daniil, 2018-07-02 19:13:03

How to style dangerouslySetInnerHTML React?

Good evening.
There is a line Sometext
If you just pass a string to the return, then it will not understand the tags.
The output is found in the form of dangerouslySetInnerHTML
But how to style it correctly, how to add the same inline style to reset the margin? Tell me please.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim, 2018-07-02
@maxfarseer

Zero out using css - !importantwrite to the desired selector

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question