I have seen an example like on how to use dangerouslySetInnerHTML()
.
Here inside the div we are putting some tag (anchor-tag in current example), but I need to insert complete HTML.
Below is the response I am getting via API;
<HTML>
<HEAD>
<BODY>
....
</BODY>
</HEAD>
</HTML>
I already have React Component and corresponding HTML element gets created but after click on the button I would receive above HTML response which will have complete HTML tags i.e HTML tag, body tag etc (it is making some sort of graph).
So, I need to Insert this newly HTML response with the existing HTML.