---
title: "Discussion on \"useContext in react\" | Hashnode"
description: "Discussion on \"useContext in react\". 📖 Prerequisites\n\nHooks in react\nBasics of react\n\n🐁 prop drilling\nBefore diving into the useContext we need to know \n\nwhy we are using the context?\nwhat problem does it solve?\n\nSuppose your component tree look like this\n<GreatGrandParent>\n   <GrandP..."
url: "https://hashnode.com/posts/usecontext-in-react/622354eae814324bc83a820f"
---

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

Discussion

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

📖 Prerequisites Hooks in react Basics of react 🐁 prop drilling Before diving into the useContext we need to know why we are using the context? what problem does it solve? Suppose your component tree look like this <GreatGrandParent> <GrandP...

Mar 5, 2022 · 5 min read · sanketdhabarde.hashnode.dev  
Read the article

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

## Written by

[Sanket Dhabarde](https://hashnode.com/@Sank22)

@Sank22 · India

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

web developer

## Responses 3

Markdown supported · ⌘↵ to post

[Peter Machele](https://hashnode.com/@pemachele)

[May 12, 2022](https://hashnode.com/posts/usecontext-in-react/622354eae814324bc83a820f/comment/627d05c84903bec29b58726b)

thanks for sharing

[Sanket Dhabarde](https://hashnode.com/@Sank22)

[May 13, 2022](https://hashnode.com/posts/usecontext-in-react/622354eae814324bc83a820f/comment/627d05c84903bec29b58726b#reply-627e6ee555afbae29a622a47)

thank you for reading.

[Sai Neelima R](https://hashnode.com/@SaiNeelima)

[May 11, 2022](https://hashnode.com/posts/usecontext-in-react/622354eae814324bc83a820f/comment/627b5756983a4ab69ce9c03f)

good read.

[Sanket Dhabarde](https://hashnode.com/@Sank22)

[May 11, 2022](https://hashnode.com/posts/usecontext-in-react/622354eae814324bc83a820f/comment/627b5756983a4ab69ce9c03f#reply-627b905ce525f1b67713679b)

Thank you so much for reading.

[Aniket singh](https://hashnode.com/@aniket86)

[Mar 14, 2022](https://hashnode.com/posts/usecontext-in-react/622354eae814324bc83a820f/comment/622f207538e0a0d99d32f234)

Nice blog

[Sanket Dhabarde](https://hashnode.com/@Sank22)

[Mar 15, 2022](https://hashnode.com/posts/usecontext-in-react/622354eae814324bc83a820f/comment/622f207538e0a0d99d32f234#reply-623019f7df08b9b82341c444)

Thank you for reading.
