---
title: "Discussion on \"Decoding the React Context API\" | Hashnode"
description: "Discussion on \"Decoding the React Context API\". Hey! 👋 In this blog, we will be talking about Context API which was introduced in React 16, You will get your answer here about how to use, why to use and so on...\nActually, Many years ago React has offered an experimental API for context. Although ..."
url: "https://hashnode.com/posts/decoding-the-react-context-api/60a145beb66a0b15ebfc9aea"
---

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

Discussion

# [Decoding the React Context API](https://punitbatra.hashnode.dev/decoding-the-react-context-api?utm_source=hashnode&utm_medium=feed)

Hey! 👋 In this blog, we will be talking about Context API which was introduced in React 16, You will get your answer here about how to use, why to use and so on... Actually, Many years ago React has offered an experimental API for context. Although ...

May 16, 2021 · 6 min read · punitbatra.hashnode.dev  
Read the article

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

## Written by

[Punit Batra](https://hashnode.com/@punitbatra6)

@punitbatra6 · Bharatpur, Rajasthan, India

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

MERN Stack Developer | GSoC'20 @INCF | Google DSC Lead

I'm a Software developer with more than 1.5 years of well-rounded experience. My skills include HTML, CSS, C/C++, JavaScript, ReactJS, NodeJS and M ongoDB and Docker. I actively seek out new technologies and stay up-to-date on industry trends and advancements. I enjoy being challenged and engaging with projects that require me to work outside my comfort and knowledge set, as continuing to learn new languages and development techniques are important to me and that also leads to success of any organization. Currently looking for a full time role as a MERN stack developer.

## Responses 1

Markdown supported · ⌘↵ to post

[Shoaib Ahmed](https://hashnode.com/@PixeledCode)

[May 16, 2021](https://hashnode.com/posts/decoding-the-react-context-api/60a145beb66a0b15ebfc9aea/comment/60a15169b66a0b15ebfc9be9)

How's this different than react-redux?

[Punit Batra](https://hashnode.com/@punitbatra6)

[May 16, 2021](https://hashnode.com/posts/decoding-the-react-context-api/60a145beb66a0b15ebfc9aea/comment/60a15169b66a0b15ebfc9be9#reply-60a154a523723215ec2fdaaa)

Redux is kinda different library. Context API is just like module in react as we can say it's using just an another hook usecontext. With this no need of extra library combining it with usereducer hook solves the problem of state mgmt completely.
