---
title: "Comment by Mayju on \"React basics: Passing data between components\" | Hashnode"
description: "I don&#39;t get which one is the parent and which one is the child in the first example. Is the App, the parent and the Bookshelf, the child in the first exampl"
url: "https://hashnode.com/posts/react-basics-passing-data-between-components/6167c92418374f2573278750/comment/6169425253401f641ba17d4c"
---

[Discussion](https://hashnode.com/posts/react-basics-passing-data-between-components/6167c92418374f2573278750)

Comment [React basics: Passing data between components](https://hashnode.com/posts/react-basics-passing-data-between-components/6167c92418374f2573278750)

[Mayju](https://hashnode.com/@mayjudev)

[Oct 15, 2021](https://hashnode.com/posts/react-basics-passing-data-between-components/6167c92418374f2573278750/comment/6169425253401f641ba17d4c)

I don't get which one is the parent and which one is the child in the first example. Is the App, the parent and the Bookshelf, the child in the first example? You mentioned that the Bookshelf is the parent and I would assume that the Book would be the child in the second example.

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Oct 15, 2021](https://hashnode.com/posts/react-basics-passing-data-between-components/6167c92418374f2573278750/comment/6169425253401f641ba17d4c#reply-6169432c18374f257327a474)

Hi Mayju,

In the first example the bookshelf is the parent.

We are passing data (books) to our bookshelf.
