JSFiddle - React, Tailwind, and code Playground
HTML
<form action="/foo" method="POST">
<p>
<input type="checkbox" id="yes" name="yes">
<label for="yes">Yes this has a label that is properly associated</label>
</p>
<p>
<input type="checkbox" id="no" name="no">
<label>No this does not have a label associated</label>
</p>
</form>
CSS
p {
margin: 4px 8px;
}