JSFiddle - React, Tailwind, and code Playground
HTML
<form action='post'>
<input name='foo' value='0' type="checkbox">
<input name='foo' value='1' type="checkbox">
<button>
submit
</button>
</form>
<form action='post'>
<input name='foo' value='0' type="checkbox">
<input name='foo' value='1' type="checkbox">
<button>
submit
</button>
</form>