---
title: "Discussion on \"Basics of Redux in 20 minutes\" | Hashnode"
description: "Discussion on \"Basics of Redux in 20 minutes\". Prerequisites = Fundamentals of React (mainly updation of states)\n\nRedux is an open-source JavaScript library for managing application state, mainly used with React, though it’s not tied to the library and hence can be used with other stacks as well...."
url: "https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68"
---

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

Discussion

# [Basics of Redux in 20 minutes](https://rajatexplains.dev/basics-of-redux-in-20-minutes?utm_source=hashnode&utm_medium=feed)

Prerequisites = Fundamentals of React (mainly updation of states) Redux is an open-source JavaScript library for managing application state, mainly used with React, though it’s not tied to the library and hence can be used with other stacks as well....

Feb 21, 2019 · 6 min read · rajatexplains.dev  
Updated Dec 18, 2021  
Read the article

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

## Written by

[Rajat Jain](https://hashnode.com/@rajatexplains)

@rajatexplains · Bengaluru, India

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

Software Engineer II 👨‍💻 at Uber | ex-Microsoft | Javascript ❤️ | Mentor 👨‍🏫 at CodeAsylums | Tech Speaker 🗣️ | React | GraphQL

I am a UI/UX enthusiast currently working as an engineer in Uber. Prior to this, I was at Microsoft for 4 years working on their most loved and complex product Microsoft Teams. I have a professional experience of training students in software engineering and computer science concepts and helping them land their dream jobs.

## Responses 2

Markdown supported · ⌘↵ to post

[Lakshya Thakur](https://hashnode.com/@lakbychance)

[Nov 22, 2020](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68/comment/5fbaab841b7ab0041800ec54)

Crisp intro :D

Btw a typo in the start -

> Redux in version 16.3.0 introduced the Context API

Gotta be **React**.

[Rajat Jain](https://hashnode.com/@rajatexplains)

[Nov 22, 2020](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68/comment/5fbaab841b7ab0041800ec54#reply-5fbaad3f0ad7f613de398719)

Oops..thanks for pointing it out. Edited :)

[Dinys Monvoisin](https://hashnode.com/@dinmon)

[Sep 29, 2020](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68/comment/5f730c26f955ec0a130f6017)

Would you mind giving tips when to opt for Redux?

[Rajat Jain](https://hashnode.com/@rajatexplains)

[Sep 29, 2020](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68/comment/5f730c26f955ec0a130f6017#reply-5f730f2cf955ec0a130f6082)

Hey Dinys, As you know, Redux is a state management library. When you are working on a big project, with many components and UI flows, state management using the conventional React patterns can be painful. That is why redux was created borrowing patterns from the flux architecture. So, the answer to your question is that when you are working on such a project, you should opt for a library like Redux (there are others too like MobX). Having said all this, nowadays, with React's context API (introduced in React 16), most of the heavy lifting of managing state is handled by React itself if you are using context at right places. Honest speaking, learning Redux is more about learning the pub-sub model it is based on. In many interviews, they ask you to create a state store like how Redux has. Now, if you have not delved into and used a state management library like Redux, the implementation will look alien to you. The underlying architecture of redux is amazing.

So, I'd say even if you are not using it and working your way out using Context API , learn redux to understand the beauty of the underlying architecture.

[Rajat Jain](https://hashnode.com/@rajatexplains)

[Sep 29, 2020](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68/comment/5f730c26f955ec0a130f6017#reply-5f730f971d7a870a345b9a38)

Also, if you want a starting point for Redux, go for Dan Abramov's redux tutorial on egghead.io

[egghead.io/courses/getting-started-with-redux](https://egghead.io/courses/getting-started-with-redux)

[Dinys Monvoisin](https://hashnode.com/@dinmon)

[Sep 29, 2020](https://hashnode.com/posts/basics-of-redux-in-20-minutes/5f68cbfc35d6463d2b5f9c68/comment/5f730c26f955ec0a130f6017#reply-5f73220f1d7a870a345b9c31)

Thank you for your answer, I don't having anything against React Context API, but I feel that with time there is a lot of duplication.

However, with my small project, I only use React Context API thought. I would not say that it replaces Redux. Redux provides greater visibility of your state throughout each component.
