JSFiddle - React, Tailwind, and code Playground
HTML
<p>
To
<br/>
{customerDetails}
</p>
JavaScript
$("p").html(function(i, html) {
return html.replace("{customerDetails}", "Mr. John Kramer");
});
<p>
To
<br/>
{customerDetails}
</p>
$("p").html(function(i, html) {
return html.replace("{customerDetails}", "Mr. John Kramer");
});