JSFiddle - React, Tailwind, and code Playground
HTML
<div class="something">something</div>
JavaScript
$(document).bind('keydown', function(e) {
if (e.keyCode == 72) {
// press the letter H
$('.something').show()
} else if (e.keyCode == 74) {
//press the letter J
$('.something').hide()
}
return false;
});