---
title: "Discussion on \"How to use Context Api\" | Hashnode"
description: "Discussion on \"How to use Context Api\". context api is mostly used to pass the data from one state to another state and it just make. It is determined as the value passed to the closest SomeContext.Provider above the calling component in the tree. If there is no such provider, then the ret..."
url: "https://hashnode.com/posts/how-to-use-context-api/66211c01bd32f2272f3a2423"
---

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

Discussion

# [How to use Context Api](https://customhooks.dev/how-to-use-context-api?utm_source=hashnode&utm_medium=feed)

context api is mostly used to pass the data from one state to another state and it just make. It is determined as the value passed to the closest SomeContext.Provider above the calling component in the tree. If there is no such provider, then the ret...

Apr 18, 2024 · 1 min read · customhooks.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#context-api](https://hashnode.com/tag/context-api)
-   [#contextapi](https://hashnode.com/tag/contextapi)

## Written by

[Mannu Chaurasiya](https://hashnode.com/@Deckwish5245)

@Deckwish5245

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

Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
