---
title: "Discussion on \"Custom hooks, Use Context, and States in React\" | Hashnode"
description: "Discussion on \"Custom hooks, Use Context, and States in React\". Let's get into it\nOne time, I ran into a problem in my React project and was working on it for a while. I thought my code looked perfect; I rechecked it again and again but was still surprised why my state was changing in Component A but wasn't chang..."
url: "https://hashnode.com/posts/custom-hooks-use-context-and-states-in-react/659bdb05f059e4dc64e7dbc8"
---

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

Discussion

# [Custom hooks, Use Context, and States in React](https://davidts.hashnode.dev/custom-hooks-use-context-and-states-in-react?utm_source=hashnode&utm_medium=feed)

Let's get into it One time, I ran into a problem in my React project and was working on it for a while. I thought my code looked perfect; I rechecked it again and again but was still surprised why my state was changing in Component A but wasn't chang...

Jan 8, 2024 · 5 min read · davidts.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#react-hooks](https://hashnode.com/tag/react-hooks)
-   [#usecontext](https://hashnode.com/tag/usecontext)
-   [#state-management](https://hashnode.com/tag/state-management)

## Written by

[David Ajibola](https://hashnode.com/@DavidScript)

@DavidScript

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

Software Engineer

just some dude

## Responses 1

Markdown supported · ⌘↵ to post

[Ayomiposi Oluwatomiwa](https://hashnode.com/@Tomsonxx)

[Jan 8, 2024](https://hashnode.com/posts/custom-hooks-use-context-and-states-in-react/659bdb05f059e4dc64e7dbc8/comment/659c0a0bb183b8ce2c36883a)

🔥🔥
