1

I have a div that wrap a component

clickComponentA = () => { //how to trigger a click on ComponentA? } render(){ return(<div onClick={this.clickComponentA}> <ComponentA /> </div>) } 

And for some reason the ComponentA has height 1px; how can I trigger a click on ComponentA when user click on somewhere else? like click on the div tag?

3

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.