JSFiddle - React, Tailwind, and code Playground

by wuct

HTML

<label for="aaa">
  口
  <input type="checkbox" id="aaa" />
</label>

JavaScript

document.querySelector('label').addEventListener('click', e => console.log(e.target))