redux
A JS library for predictable global state management (by reduxjs)
SWR
React Hooks for Data Fetching (by vercel)
redux | SWR | |
---|---|---|
300 | 255 | |
61,165 | 31,377 | |
0.1% | 0.9% | |
8.5 | 7.6 | |
4 days ago | 12 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
redux
Posts with mentions or reviews of redux.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2025-03-31.
-
Architecture and Design Patterns in Front-End
In frontend, the most probably well-known approach is Flux and its most common implementation, Redux. This is an example of unidirectional data flow.
-
Organisation of Data Flows
The best known example of an architecture with unidirectional data flow is Flux and, as its implementation, Redux.
-
Valentine’s Day Breakup: React Dumps Create React App
CRA makes integrating libraries like Redux and React Router easy without requiring complex Webpack and Babel configurations.
-
UmiJS: the Shaolin of web frameworks
Dva. A plugin-based state management solution (Redux + Sagas). Also quite popular in narrow communities outside of the Umi world.
-
Arrays: Reduce - Make Something
If you use Redux or the useReducer() hook, the idea is almost the same. Instead of reducing data, we are reducing actions. What we've referred to as the accumulator is accumulating the state, and the value is whatever action is being performed to update the state. We can take a group of actions and allow each one to make changes.
-
How To Use Redux In React JS
Official Redux Docs
-
Build Content Management System with React and Node: Beginning Project Setup
Redux - is a predictable state container for JavaScript applications, commonly used with React for managing application state. It centralizes the state of an application, making it easier to manage and debug while facilitating predictable behavior through a unidirectional data flow.
-
The problem with indirections
Something I have already seen in many different code bases using frontend libraries like React and Vue is that developers use advanced state management solutions (e.g. Redux, Vuex, or Pinia) way too often.
-
17 Tips from a Senior React Developer
You don't need Redux or Jotai right away.
-
Getting Started with Redux and Redux Toolkit
As the official documentation states: Redux is a pattern and library for managing and updating global application state. It serves as a centralized store for state that needs to be used across your entire application, with rules ensuring that the state can only be updated in a predictable fashion (without causing side effects or unexpected behaviors).
SWR
Posts with mentions or reviews of SWR.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-12-05.
-
useSWR usage in vercel/ai-chatbot hooks.
Following is overview picked from SWR site.
-
Using React Suspense with Data Fetching and Concurrent Rendering.
If you need more robust features—like caching, re-fetching, or pagination—check out libraries like React Query or SWR. Many of these tools also offer optional Suspense modes, so you can keep your data-fetching code clean while benefiting from powerful caching and refetching mechanisms.
-
Mastering CRUD with NextJS
Client-Side Data Fetching with useQuery can be used for interactive components that need to fetch data on the client-side, with initial state hydrated from server-side fetched data. For fetching data that changes frequently or for adding client-side interactivity it is useful the useSWR strategy. It’s a React hook for client-side data fetching with caching and revalidation. It allows fetching data on the client side, usually after the initial page load. Nevertheless, it does not fetch data at build time or on the server for SSR, but it can revalidate and fetch new data when required.
-
Is React as hard/complex as it sounds?
SWR for lightweight data fetching
- Session State Management | JS | React
-
Essential Frontend Resources for Next.js Development 🚀
⚡ SWR Documentation
-
In-Depth Comparison: How to Choose the Most Suitable Enhanced Request Library
swr
-
The Evolution of React State Management: From Local to Async
We can do this with React-Query, SWR, Redux Toolkit Query and many others.
-
Building a subscription tracker Desktop and iOS app with compose multiplatform—Providing feedbacks
This is a common approach in JS land, and there are plenty of libraries that help abstract the logic and make sure the state is consistent, like swr or TanStack Query.
-
The Ultimate React Roadmap for 2024 - Learn React the Right Way
SWR is a React Hook for data fetching that makes it easy to fetch, cache, and revalidate data at the component level.
What are some alternatives?
When comparing redux and SWR you can also consider the following projects:
cerebral - Declarative state and side effects management for popular JavaScript frameworks
react-query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]
reflux - A simple library for uni-directional dataflow application architecture with React extensions inspired by Flux
axios - Promise based HTTP client for the browser and node.js
effector-react - Business logic with ease ☄️
zustand - 🐻 Bear necessities for state management in React