DEV Community

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

Collapse
mohammad_seyfayi profile image
Mohammad Seyfayi

In this solution the chid element have to know the className of its parent
And I think it's a bad practice