---
title: "Discussion on \"useContext in Hooks\" | Hashnode"
description: "Discussion on \"useContext in Hooks\". React context is a way to manage state globally.\n\nIt can be used together with the useState hook to share state between deeply nested components more easily than with useState alone.\n\n\n\n//Pass data from app component to compC ile through file:-\n// Ap..."
url: "https://hashnode.com/posts/usecontext-in-hooks/640d80c16986b2b57a79c08b"
---

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

Discussion

# [useContext in Hooks](https://megha17.hashnode.dev/usecontext-in-hooks?utm_source=hashnode&utm_medium=feed)

React context is a way to manage state globally. It can be used together with the useState hook to share state between deeply nested components more easily than with useState alone. //Pass data from app component to compC ile through file:- // Ap...

Mar 12, 2023 · 1 min read · megha17.hashnode.dev  
Updated Mar 14, 2023  
Read the article

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

## Written by

[Megha Khatri](https://hashnode.com/@megha17)

@megha17

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
