---
title: "Discussion on \"When to (Not) Use React Context API for State?\" | Hashnode"
description: "Discussion on \"When to (Not) Use React Context API for State?\". The React Context API can be used to provide state to multiple components far away in the component tree. But is context always the best choice?"
url: "https://hashnode.com/posts/when-to-not-use-react-context-api-for-state/62b54b2092447c9aed5b3f92"
---

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

Discussion

# [When to (Not) Use React Context API for State?](https://wempe.dev/blog/when-to-not-use-react-context-api-for-state?utm_source=hashnode&utm_medium=feed)

The React Context API can be used to provide state to multiple components far away in the component tree. But is context always the best choice?

Jun 24, 2022 · 3 min read · wempe.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#react](https://hashnode.com/tag/react)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)
-   [#state](https://hashnode.com/tag/state)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Jannik Wempe](https://hashnode.com/@JannikWempe)

@JannikWempe · Hamburg, Germany

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

Platform Engineering Lead @hashnode | Serverless and Frontend Enthusiast

Platform Engineering Lead @hashnode Serverless and Frontend Enthusiast 🤓 Into AWS, TypeScript, React, Svelte and upcoming trends… ☁️ AWS Community Builder Serverless Coding is not only a job – it's a passion. Based in Hamburg 🇩🇪

## Responses 4

Markdown supported · ⌘↵ to post

[Vatsal Awadhiya](https://hashnode.com/@thevatsal)

[Jun 26, 2022](https://hashnode.com/posts/when-to-not-use-react-context-api-for-state/62b54b2092447c9aed5b3f92/comment/62b8678692447c9aed5b9d7f)

This was really awesome!! Thanks a lot, Jannik.

[Developer Avocado](https://hashnode.com/@AvocaDEV)

[Jun 25, 2022](https://hashnode.com/posts/when-to-not-use-react-context-api-for-state/62b54b2092447c9aed5b3f92/comment/62b6e334b86f939ac81b54ff)

This is awesome [Jannik Wempe](https://hashnode.com/@JannikWempe), thanks for sharing 👍

[Jannik Wempe](https://hashnode.com/@JannikWempe)

[Jun 25, 2022](https://hashnode.com/posts/when-to-not-use-react-context-api-for-state/62b54b2092447c9aed5b3f92/comment/62b6e334b86f939ac81b54ff#reply-62b6f124b86f939ac81b568d)

Thank you 🥑 🙂

[Daniel Brobäck](https://hashnode.com/@DanneBrob)

[Jun 25, 2022](https://hashnode.com/posts/when-to-not-use-react-context-api-for-state/62b54b2092447c9aed5b3f92/comment/62b6e17a92447c9aed5b7503)

Well written post, thank you!

[Jannik Wempe](https://hashnode.com/@JannikWempe)

[Jun 25, 2022](https://hashnode.com/posts/when-to-not-use-react-context-api-for-state/62b54b2092447c9aed5b3f92/comment/62b6e17a92447c9aed5b7503#reply-62b6e27792447c9aed5b752a)

I am happy that you like it, Daniel 🙏🏼

[Shubham Kumar Singh](https://hashnode.com/@shubhamsinghbundela)

[Jun 25, 2022](https://hashnode.com/posts/when-to-not-use-react-context-api-for-state/62b54b2092447c9aed5b3f92/comment/62b66d2d92447c9aed5b674f)

Thank you [Jannik Wempe](https://hashnode.com/@JannikWempe)
