DEV Community

Discussion on: How to Pass Data From One Component to Other Component in React?

dipakkr profile image
Deepak Kumar Author

Let's understand the hierarchy if I understood your question.

Now, you are saying that I don't want to show content of child in parent. If the strucuture of Child -parent will be this, then the child content will be visible inside parent.