JSFiddle - React, Tailwind, and code Playground
HTML
<body onload=setTimeout(PR_refresh,1000)>
<div id="PR">
Texte de depart
</div>
</body>
JavaScript
function PR_refresh()
{
$('#PR').html("Texte après une seconde");
}
<body onload=setTimeout(PR_refresh,1000)>
<div id="PR">
Texte de depart
</div>
</body>
function PR_refresh()
{
$('#PR').html("Texte après une seconde");
}