JSFiddle - React, Tailwind, and code Playground
HTML
<input type=checkbox id=termos>Você aceita os termos</input><br>
<button onclick=checar()>Botão</button>
<script>
function checar() {
if (document.getElementById('termos').checked) {
window.location="http://www.google.com";
} else {
alert("Você não aceitou os termos ainda!");
}
}
</script>