JSFiddle - React, Tailwind, and code Playground

by WoJWoJ

HTML

<button onclick="cleanup()">
cleanup
</button>
<button onclick="add()">
add info
</button>
<div class="top">
<div>
hello
</div>
<div>
world
</div>
</div>

CSS

td {
  background: green;
  color: white;
  padding: 10px;
}

JavaScript

function cleanup(){
$(".top div").html('')
}

function add() {
$(".top").html('wazaa')
}