CSS not working on dangerouslySetInnerHTML React
تبليغسؤال
I receive HTML from a API call wich I display like this :
{props.content && <div>
{textToDisplay && <div dangerouslySetInnerHTML={{ __html: textToDisplay }} className="my-4">
</div>}}
I created a style.css to style all types of tags I can receive. Example :
h1 ...