---
title: "Discussion on \"Should I totally ditch redux API for context API?\" | Hashnode"
description: "Discussion on \"Should I totally ditch redux API for context API?\". Introduction\nIf you're like me, immediately you learned how to use react hooks and the context API (useContext) you'd have stopped using redux for your app(web/mobile) state management.\n\nBut, the challenges I faced this week at work thought me otherw..."
url: "https://hashnode.com/posts/should-i-totally-ditch-redux-api-for-context-api/606ad0581ed1783ab063550b"
---

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

Discussion

# [Should I totally ditch redux API for context API?](https://toby-adedipe.hashnode.dev/should-i-totally-ditch-redux-api-for-context-api?utm_source=hashnode&utm_medium=feed)

Introduction If you're like me, immediately you learned how to use react hooks and the context API (useContext) you'd have stopped using redux for your app(web/mobile) state management. But, the challenges I faced this week at work thought me otherw...

Apr 5, 2021 · 4 min read · toby-adedipe.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)
-   [#react-native](https://hashnode.com/tag/react-native)

## Written by

[Adedipe Oluwatobi](https://hashnode.com/@adedipe)

@adedipe · Lagos, Nigeria

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

Trying to help people solve business problems with technology.

I am a front end developer. My major tools are React and react native. I currently work for two companies, using react for web in one and react native for mobile apps in the other. This blog is place for me to share my occasional thoughts and experiences working with react and other javascript tools. PS: I wont always talk about tech.

## Responses 4

Markdown supported · ⌘↵ to post

[OKIEMUTE BADARE](https://hashnode.com/@MelvinCodes)

[Mar 3, 2022](https://hashnode.com/posts/should-i-totally-ditch-redux-api-for-context-api/606ad0581ed1783ab063550b/comment/622129865998063ea60d6583)

Nice piece, actually most developers needs to read this before saying redux is too complex

[Salim Moulmaaz](https://hashnode.com/@SalimAPI)

[Apr 26, 2021](https://hashnode.com/posts/should-i-totally-ditch-redux-api-for-context-api/606ad0581ed1783ab063550b/comment/6086dc8370758d2ac1549106)

Hi Adedipe,

If you want to try a new tool for your projects you can check our Saas plateform which facilitate integration of APIS.

We tend to simplify the integration of APIs, the interfaces that allow the exchange between isolated services and data.

meta-api.io

You can reach me if you have questions !

Salim

[Vipin Gautam](https://hashnode.com/@noob-dev)

[Apr 6, 2021](https://hashnode.com/posts/should-i-totally-ditch-redux-api-for-context-api/606ad0581ed1783ab063550b/comment/606c1261b17dc439b747e6f7)

Hello , may you tell more about when to use redux and when to use Context...means the use cases , how to differentiate between them. Thank you

[Adedipe Oluwatobi](https://hashnode.com/@adedipe)

[Apr 6, 2021](https://hashnode.com/posts/should-i-totally-ditch-redux-api-for-context-api/606ad0581ed1783ab063550b/comment/606c1261b17dc439b747e6f7#reply-606c6af7b17dc439b747ee5f)

useContext can be used when your app isn't very complex, for example if you want to use a variable in multiple files, and you know that the value of that variable is going to be the same across those files. You can add useReducer if you need to have a moderately complex state management in your app, for example if you're fetching some data from an external API and you want to be able to manage how you dispatch actions. Redux would work better if, your app state is updated frequently, logic to update the state is complex. etc.

this blog post goes into further details

[blog.isquaredsoftware.com/2021/01/context-redux-d…](https://blog.isquaredsoftware.com/2021/01/context-redux-differences/)

[Vipin Gautam](https://hashnode.com/@noob-dev)

[Apr 6, 2021](https://hashnode.com/posts/should-i-totally-ditch-redux-api-for-context-api/606ad0581ed1783ab063550b/comment/606c1261b17dc439b747e6f7#reply-606caaf61ed1783ab063822f)

[Adedipe Oluwatobi](https://hashnode.com/@adedipe) Thanks , but i like context as i only know this ,,, : )

[Adedipe Oluwatobi](https://hashnode.com/@adedipe)

[Apr 6, 2021](https://hashnode.com/posts/should-i-totally-ditch-redux-api-for-context-api/606ad0581ed1783ab063550b/comment/606c1261b17dc439b747e6f7#reply-606cc52eb17dc439b747f6d8)

[Vipin Gautam](https://hashnode.com/@gauti) Haha, you're welcome. I actually love context, its easier to understand. A use case i think i mentioned in the post is if you want to update or use your state outside of a functional component, context doesn't really work for that.

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

[Apr 5, 2021](https://hashnode.com/posts/should-i-totally-ditch-redux-api-for-context-api/606ad0581ed1783ab063550b/comment/606afcdb1ed1783ab0635982)

Agreed they both serve a purpose and its convenient switching between the two.
