# Zustand and React Context

DevFeed: [Zustand and React Context](<https://devfeed.tech/articles/zustand-and-react-context-48257.md>)

Original publisher: [Read original article](<https://tkdodo.eu/blog/zustand-and-react-context>)

Published: 2024-04-14T00:00:00Z

Content type: article

Language: en

Sources: [TkDodo](<https://devfeed.tech/sources/tkdodo-s-blog.md>)

Topics: [Zustand](<https://devfeed.tech/topics/zustand.md>), [state-management](<https://devfeed.tech/topics/state-management.md>), [React](<https://devfeed.tech/topics/react.md>), [Design system](<https://devfeed.tech/topics/design-system.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [design-system](<https://devfeed.tech/tags/design-system.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [performance](<https://devfeed.tech/tags/performance.md>), [react](<https://devfeed.tech/tags/react.md>), [react-component](<https://devfeed.tech/tags/react-component.md>), [state-management](<https://devfeed.tech/tags/state-management.md>), [testing](<https://devfeed.tech/tags/testing.md>)

## AI overview

An article examines when to combine Zustand with React Context. It discusses scoping stores to component subtrees, initializing them from props, testing implications, and a performance improvement for a large multi-selection component.

## Source excerpt

Zustand stores a global and don't need React Context - but sometimes, it makes sense to combine them regardless.