returned data has p tags react

JavaScript
return <div dangerouslySetInnerHTML={{ __html: yourStringWithHtmlInIt }} />;
Source

Also in JavaScript: