---
title: "Discussion on \"How to Use React's Context API – Tutorial with Examples\" | Hashnode"
description: "Discussion on \"How to Use React's Context API – Tutorial with Examples\". In React, data is typically passed down from parent to child via props. But this can lead to \"prop drilling\" – where we have to pass props down through lots of components to get them where they're needed.\nAlso, some props (for example, the current au..."
url: "https://hashnode.com/posts/react-context-api-tutorial-examples/66c8c99f85ffc69fd028a82c"
---

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

Discussion

# [How to Use React's Context API – Tutorial with Examples](https://freecodecamp.org/news/react-context-api-tutorial-examples?utm_source=hashnode&utm_medium=feed)

In React, data is typically passed down from parent to child via props. But this can lead to "prop drilling" – where we have to pass props down through lots of components to get them where they're needed. Also, some props (for example, the current au...

Jul 22, 2024 · 12 min read · freecodecamp.org  
Read the article

-   [#react](https://hashnode.com/tag/react)
-   [#react-context](https://hashnode.com/tag/react-context)

## Written by

[Danny](https://hashnode.com/@DoableDanny)

@DoableDanny

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

I do JavaScript and PHP - front to back

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
