---
title: "Zustand and React Context"
url: https://daily.dev/posts/zustand-and-react-context-xbemydh7t
source_url: https://tkdodo.eu/blog/zustand-and-react-context
type: article
source: "TkDodo"
author: "Dominik D"
published: 2024-04-14T14:59:44.733Z
updated: 2026-03-15T03:33:44.936Z
tags: ["react", "zustand"]
reading_time: 6
upvotes: 100
comments: 4
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Zustand and React Context

**[TkDodo](https://daily.dev/sources/tkdodo)** · [@tkdodo](https://daily.dev/tkdodo) · 6 min read · 100 upvotes · 4 comments

## Summary

Zustand is a simple and fast library for global client-state management. However, using global stores in Zustand can have drawbacks, such as difficulty initializing the store with props, complex testing, and lack of reusability. To solve these issues, React Context can be used to share the store instance while keeping the store values isolated. By combining Zustand with React Context, it becomes easier to initialize the store with props, simplify testing, and achieve component encapsulation and reusability.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://tkdodo.eu/blog/zustand-and-react-context>

## Community discussion

Top comments from developers on daily.dev.

**@banghuynh04** · 2 upvotes

> Currently using Zustand for my project, It's so simple, Good job!

**@robertoumbelino** · 2 upvotes

> @tkdodo Nice article. I didn't know you could use createStore and create inside a component. I really like it.

**@chen404** · 1 upvotes

> Awsome

**@srivishnusivan** · 0 upvotes

> I'm planning to migrate from redux toolkit to zustand, is it advisable??

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#react](https://daily.dev/tags/react), [#zustand](https://daily.dev/tags/zustand)

[View this post on daily.dev](https://daily.dev/posts/zustand-and-react-context-xbemydh7t)
