JSFiddle - React, Tailwind, and code Playground
HTML
<button class="numbers" value="2">Click me</button>
<div id="screen"></div>
JavaScript
$(".numbers").click(function(){
currentValue = ($(this).val());
$("#screen").html(function(){
return "<p> " + currentValue.toString() + "</p>";
})
});