JSFiddle - React, Tailwind, and code Playground

HTML

<!-- Example 1 -->
<input id="checkboxID" type="checkbox" />
<label for="checkboxID">This will check/uncheck the checkbox if clicked</label>

<br/><br/>

<!-- Example 2 If you really want to put it in a div -->
<input id="checkboxID2" type="checkbox" />
<div>
    <label for="checkboxID2">This will check/uncheck the checkbox if clicked</label>
</div>