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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3720c-2c061.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3720c-2c061.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?