JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<body>
<div id="demo">
<p>The initial text</p>
</div>
<button id="button1">Replace Text</button>
</body>
</html>
<!-- see more https://soltuts.com -->
JavaScript
$(document).ready(function(){
$("#button1").click(function(){
$('#demo p').text('The replaced text.');
});
});