---
title: "Discussion on \"React basics: Passing data between components\" | Hashnode"
description: "Discussion on \"React basics: Passing data between components\". Passing data between components in React is a very powerful concept.\nIn this article, we'll look at the following two things:\n\nSending data from a parent to a child\nSending data from a child to parent\n\nFor this concept, we'll need to use the useState..."
url: "https://hashnode.com/posts/react-basics-passing-data-between-components/6167c92418374f2573278750"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [React basics: Passing data between components](https://h.daily-dev-tips.com/react-basics-passing-data-between-components?utm_source=hashnode&utm_medium=feed)

Passing data between components in React is a very powerful concept. In this article, we'll look at the following two things: Sending data from a parent to a child Sending data from a child to parent For this concept, we'll need to use the useState...

Oct 14, 2021 · 3 min read · h.daily-dev-tips.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#components](https://hashnode.com/tag/components)

## Written by

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

@dailydevtips · Cape Town, SA

  
[View profile](https://hashnode.com/@dailydevtips)

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses 1

Markdown supported · ⌘↵ to post

[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.
