JSFiddle - React, Tailwind, and code Playground
HTML
<input id="name" type="text" />
<input id="email" type="text" />
<a class="next">show div</a>
CSS
.next { display: none; }
JavaScript
$(function () {
$('input').change(function() {
$('.next').toggle($(this).val().length !== 0);
});
});