I have been attempting to display an HTML page in React JS, but I am not achieving the same appearance. Here is the code snippet I used in React JS:
<div dangerouslySetInnerHTML={{ __html: data }}/>
When executed in regular HTML, the page looks like this:
enter image description here
However, when executed in React JS, the page appears as follows:
enter image description here