If you want to render a variable containing HTML tags, you could use the dangerouslySetInnerHtml
property: documentation on reactjs.org - DOM Elements # dangerouslySetInnerHtml.
Note this is, as said, dangerous. It's explained in the documentation rendering HTML from a variable could be a XSS vulnerability:
In general, setting HTML from code is risky because it’s easy to inadvertently expose your users to a cross-site scripting (XSS) attack.
For more information, you should read articles on this topic. Here is an article to explain XSS attacks:
Cross-Site Scripting (XSS) is a vulnerability in web applications and also the name of a client side attack in which the attacker injects and runs a malicious script into a legitimate web page. Browsers are capable of displaying HTML and executing JavaScript.
— Satyam Singh, Oct 4, 2018 - 5 Practical Scenarios for XSS Attacks - pentest-tools.com
Using the dangerouslySetInnerHtml
property, your code should look like this:
var deskripsi = <p dangerouslySetInnerHTML={ __html: products.deskripsi }></p>;
Hope it'll help!