JSFiddle - React, Tailwind, and code Playground
HTML
<input type="checkbox" id="checkbox" checked /> Want to show button?<br/>
<input type="button" id="button" value="i am a button" />
JavaScript
$('#checkbox').on('change', function() {
$('#button').toggle(this.checked);
});