---
title: "Discussion on \"Context API : Share state across components easily\" | Hashnode"
description: "Discussion on \"Context API : Share state across components easily\". In this post I will show you how React Context API is great to pass data that can be used in any component in your application.\n\nWhat is Context API ?\nIn React, data is passed from a parent to its child components as props. This can get tricky and co..."
url: "https://hashnode.com/posts/context-api-share-state-across-components-easily/645e3cda3bbe6bc748708bc7"
---

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

Discussion

# [Context API : Share state across components easily](https://gabrielpenteado.hashnode.dev/context-api-share-state-across-components-easily?utm_source=hashnode&utm_medium=feed)

In this post I will show you how React Context API is great to pass data that can be used in any component in your application. What is Context API ? In React, data is passed from a parent to its child components as props. This can get tricky and co...

May 12, 2023 · 3 min read · gabrielpenteado.hashnode.dev  
Updated Jan 10, 2024  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#context-api](https://hashnode.com/tag/context-api)
-   [#typescript](https://hashnode.com/tag/typescript)
-   [#components-in-react](https://hashnode.com/tag/components-in-react)

## Written by

[Gabriel Penteado](https://hashnode.com/@gabrielpenteado)

@gabrielpenteado

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

gabrielpenteado

Hello, my name is Gabriel Penteado. I am a Full stack Software Developer in constant progress, dedicated to create solutions by open-source projects that improve people's lives. Besides coding I like to play tennis, play piano, travel and join family and friends.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
