Clicking on elements in jQuery causes bubble up to body. If we have a click handler binded to body that shows an alert, then clicking on any element will bubble up to body a
In React, we can directly get using currentTarget and target
import React from "react"; function Bar() { return ( { if (ev.target == ev.currentTarget) console.log("Target hit"); }} > Click me, maybe test doesnt trigger hit ); }