JSFiddle - React, Tailwind, and code Playground
by Imabot
HTML
<h1 id="title">Document Object Model</h1>
<button onclick="document.getElementById('title').innerText = 'New title';">
Click here to change the title
</button>
by Imabot
<h1 id="title">Document Object Model</h1>
<button onclick="document.getElementById('title').innerText = 'New title';">
Click here to change the title
</button>