Can't React add click events to child components?

problem description

render ()
{

  return (
    <div onClick={()=>{alert(1)}}>
    <div onClick={()=>{alert(2)}}>Hello</div>
    <NavLinkBar onClick={()=>{alert(3)}} data={navList}> 
    </NavLinkBar>
    </div>     
    )

}

clipboard.png

No matter how much you click, you can only start from the outermost div alert (1). Is it my bug here, or is it designed by react itself?

here is TabBar with antd-mobile


TabBar itself does not support onClick events, so you wrote


if the component is defined by yourself, you can receive the onClick parameter internally props . If the component provided by the component library provides the corresponding api callback

.
Menu