---
title: "Comment by Tarun Sharma on \"State Management: Context API, Prop Drilling, React.memo, useMemo, and useCallback\" | Hashnode"
description: "Really thorough breakdown, this covers more ground than most Context explainers. One gap worth adding for beginners specifically, every component that calls use"
url: "https://hashnode.com/posts/state-management-context-api-prop-drilling-react-memo-usememo-and-usecallback/6a84add052994f879090d75a/comment/6a8a9f9d650337299331bcfa"
---

[Discussion](https://hashnode.com/posts/state-management-context-api-prop-drilling-react-memo-usememo-and-usecallback/6a84add052994f879090d75a)

Comment [State Management: Context API, Prop Drilling, React.memo, useMemo, and useCallback](https://hashnode.com/posts/state-management-context-api-prop-drilling-react-memo-usememo-and-usecallback/6a84add052994f879090d75a)

[Tarun Sharma](https://hashnode.com/@101beardo)

[Aug 23](https://hashnode.com/posts/state-management-context-api-prop-drilling-react-memo-usememo-and-usecallback/6a84add052994f879090d75a/comment/6a8a9f9d650337299331bcfa)

Really thorough breakdown, this covers more ground than most Context explainers. One gap worth adding for beginners specifically, every component that calls useContext(ThemeContext) re-renders when the provider value changes, even if that component only reads one field out of an object with five. If you bundle theme, user, and notifications into one AppContext for convenience, updating notifications re-renders every theme reader too. Splitting into separate contexts per concern, or memoizing the value object, is the fix, and it's the kind of thing that bites people right after they've just learned Context and start putting everything in one provider

[Ved Pandey](https://hashnode.com/@Ved-Pandey)

[Aug 26](https://hashnode.com/posts/state-management-context-api-prop-drilling-react-memo-usememo-and-usecallback/6a84add052994f879090d75a/comment/6a8a9f9d650337299331bcfa#reply-6a8ed00c940d0be2050a134e)

Thanks for the kind words and feedback 😊 Added that section 👍

[Tarun Sharma](https://hashnode.com/@101beardo)

[Aug 30](https://hashnode.com/posts/state-management-context-api-prop-drilling-react-memo-usememo-and-usecallback/6a84add052994f879090d75a/comment/6a8a9f9d650337299331bcfa#reply-6a9430f540439c7c6df10274)

Nice, glad it was useful.
