redux-thunk vs Zustand: What are the differences?
What is redux-thunk? Thunk middleware for Redux. Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState as parameters.
What is Zustand? Bear necessities for state management in React. Small, fast and scaleable bearbones state-management solution. Has a comfy api based on hooks, that isn't boilerplatey or opinionated, but still just enough to be explicit and flux-like.
redux-thunk and Zustand can be categorized as "State Management Library" tools.
redux-thunk and Zustand are both open source tools. redux-thunk with 13.6K GitHub stars and 760 forks on GitHub appears to be more popular than Zustand with 1.58K GitHub stars and 44 GitHub forks.