---
title: "Discussion on \"React global state management with Context API (no Redux)\" | Hashnode"
description: "Discussion on \"React global state management with Context API (no Redux)\". In my last project, I had to share state between many components. Most of them didn't share a common parent, so passing state with props and a callback function was not an option, also it would be inconvenient to do so. Therefore I used React's Conte..."
url: "https://hashnode.com/posts/react-global-state-management-with-context-api-no-redux/60e79e453dc33f032e23c2e3"
---

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

Discussion

# [React global state management with Context API (no Redux)](https://muratcanyuksel.hashnode.dev/react-global-state-management-with-context-api-no-redux?utm_source=hashnode&utm_medium=feed)

In my last project, I had to share state between many components. Most of them didn't share a common parent, so passing state with props and a callback function was not an option, also it would be inconvenient to do so. Therefore I used React's Conte...

Jul 9, 2021 · 6 min read · muratcanyuksel.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#redux](https://hashnode.com/tag/redux)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#coding](https://hashnode.com/tag/coding)

## Written by

[Murat Can Yüksel](https://hashnode.com/@muratyuksel)

@muratyuksel

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

Web Developer

I build front end applications for EVM based blockchain protocols. You can contact me on my LinkedIn profile for business inquiries =&gt; https://www.linkedin.com/in/murat-can-y%C3%BCksel-2b1347119/

## Responses 2

Markdown supported · ⌘↵ to post

[CapsCode](https://hashnode.com/@capscode)

[Jul 10, 2021](https://hashnode.com/posts/react-global-state-management-with-context-api-no-redux/60e79e453dc33f032e23c2e3/comment/60e9ed96c551f16b0f84878b)

I totally agree with this line **\*Context API is an easy and no-hassle way for developers who wish to share data between components without using a third party library like Redux**.\*

But sometimes it depends on the data as well that which type of data and how dynamic is the data & accordingly we should choose the 3rd party library.

Thanks

[Catalin Pit](https://hashnode.com/@Catalinpit)

[Jul 9, 2021](https://hashnode.com/posts/react-global-state-management-with-context-api-no-redux/60e79e453dc33f032e23c2e3/comment/60e7f74b8aaa3f019846bccd)

As a React newbie, which one's better? Or it depends on the situation?

Should one use the Context API or Redux?

[Murat Can Yüksel](https://hashnode.com/@muratyuksel)

[Jul 9, 2021](https://hashnode.com/posts/react-global-state-management-with-context-api-no-redux/60e79e453dc33f032e23c2e3/comment/60e7f74b8aaa3f019846bccd#reply-60e826768aaa3f019846c1be)

Hello Catalin, thank you for your comment. Unfortunately, I'm a React newbie and I don't know Redux, so I can't directly answer this question.

But maybe this fact answers something at least. I also heard that Redux is a bit more complicated (which generally means can be used in more complex settings) but I don't know really.

Do you know Redux? If so, what do you think? I'll learn it next for sure, everyone is talking about it :)

[Andrew Baisden](https://hashnode.com/@andrewbaisden)

[Jul 9, 2021](https://hashnode.com/posts/react-global-state-management-with-context-api-no-redux/60e79e453dc33f032e23c2e3/comment/60e7f74b8aaa3f019846bccd#reply-60e83d9f8aaa3f019846c410)

It depends on the project both work really well. The Context API is probably better for medium sized projects and Redux is better for large scale projects.

Redux is a 3rd party library whereas the Context API is built in so you have to install lots of dependencies which will increase the bundle size. Also Redux has tons of boilerplate and a long setup process because you need to build the store and setup the actions from scratch.

The Context API has significantly less boilerplate so the setup is going to be quicker. However Redux has an extension for dev tools in the browser which makes it easy to see your state and the changes that are made in real time.

[Murat Can Yüksel](https://hashnode.com/@muratyuksel)

[Jul 9, 2021](https://hashnode.com/posts/react-global-state-management-with-context-api-no-redux/60e79e453dc33f032e23c2e3/comment/60e7f74b8aaa3f019846bccd#reply-60e8a8788aaa3f019846ce3e)

thanks for clarification Andrew! [Andrew Baisden](https://hashnode.com/@andrewbaisden)
