JSFiddle - React, Tailwind, and code Playground

HTML

<input type="checkbox" id="terms" unchecked/>Terms
<br /><br />
<button id="submit">
continue</button>

JavaScript

$('#submit').on('click', function() {
         if($('#terms').is(':checked')) {
        }
        else {
					alert("To proceed you must accept the terms.")        
        }
    });
});