A lightweight state container for React, Preact, Vue, and Svelte with zero boilerplate.
Redux Zero is a lightweight state container library for JavaScript applications, built as a simpler alternative to Redux. It provides predictable state management without the boilerplate of action types and reducers, allowing developers to write pure functions that directly update the state. It supports multiple frontend frameworks including React, Preact, Vue, and Svelte through framework-specific bindings.
Frontend developers building applications with React, Preact, Vue, or Svelte who want a minimal, boilerplate-free state management solution. It's ideal for projects where Redux's complexity is unnecessary but predictable state updates are still required.
Developers choose Redux Zero for its extremely simple API, framework flexibility, and elimination of Redux boilerplate. Its pure function actions and built-in async support reduce learning curve and code overhead while maintaining predictable state management.
A lightweight state container based on Redux
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Actions are pure functions that directly return state updates, eliminating the need for action types, reducers, and switch statements as shown in the counter example.
Provides dedicated bindings for React, Preact, Vue, and Svelte, allowing shared state logic across multiple frontend frameworks with UMD scripts available.
Async actions are handled without middleware; actions can return promises and update state directly, demonstrated in the async example with loading states.
Includes type definitions and BoundActions type for compiler checks on action calls, ensuring type-safe state and actions as illustrated in the TypeScript section.
Has fewer community tools and integrations compared to Redux; DevTools support relies on unofficial, community-maintained middleware mentioned in the README.
Lacks built-in time-travel debugging and state persistence; the roadmap lists these as future additions, indicating current gaps in functionality.
With actions directly mutating state via pure functions, enforcing strict unidirectional data flow might be harder in large apps compared to Redux's reducer pattern.
Redux Zero is an open-source alternative to the following products: