JSFiddle - React, Tailwind, and code Playground

by MatyasSvejdik

HTML

<h3 onclick="do something"><input type="checkbox" name="child" onclick="return false;" /> text</h3>

JavaScript

function onclick_handler(e)
{
   e.stopPropagation(); //this event would propagate to parents of this object which are clicked as well
   // the rest here
}