JSFiddle - React, Tailwind, and code Playground
by nickcoutsos
HTML
<html>
<body>
<button>
hello
</button>
</body>
</html>
JavaScript
document.body.querySelector('button').addEventListener('click', () => {
const element = document.createElement('p')
element.textContent = 'clicked'
document.body.appendChild(element)
})