DEV Community

Discussion on: Trigger an onClick event outside the child element, works for nested child components too.

Collapse
 
hamsahn profile image
Hamsa H N • Edited

This is one of the approaches that I could think of. Please let me know if there is a way to avoid child element not having to know the parent's className. Would love to learn.