redux VS SWR

Compare redux vs SWR and see what are their differences.

redux

Predictable state container for JavaScript apps (by reduxjs)
Our great sponsors
  • Appwrite - The Open Source Firebase alternative introduces iOS support
  • Scout APM - Less time debugging, more time building
  • SonarQube - Static code analysis for 29 languages.
redux SWR
190 145
58,318 22,992
0.3% 2.1%
8.9 9.2
about 10 hours ago 6 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.

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 2022-07-03.
  • State management on backend for VSCode LSP extension
    1 project | reddit.com/r/vscode | 5 Jul 2022
    If you like Redux, you should be able to use it on the backend just fine. You will want to use the Redux library directly, as opposed to the react-redux bindings you are probably used to.
  • React seems very flawed
    1 project | reddit.com/r/learnprogramming | 5 Jul 2022
    All your problems can be fixed with redux, the new redux toolkit is amazing for loading data asynchronously, it decouples the data fetching logic from your components and you can also have nested states. Try it out! redux.js.orgRedux Website
  • Component Breakdown & State Management ⚙ - Building a tic-tac-toe game with React from scratch
    1 project | dev.to | 3 Jul 2022
    React applications work with data that may frequently change and the UI needs to update in respond to these changes. Such data is called state, and it can be stored either in the global scope, where it is accessible to all components, or in the component scope, where it is accessible to only a single component and optionally its children. State management libraries like Redux allow us to store data in the global scope and write methods to access and change it.
  • Discovering the front-end and React
    2 projects | dev.to | 3 Jul 2022
    State is data that is created within the component and used only inside it. It is supposed to represent the actual state of the component in a given moment. For example, whether a button is clickable or not. Managing state is one of the biggest challenges in front-end projects. Complex applications have several pieces of state and sometimes managing it requires help from other libraries, like Redux, or even React’s own Context API.
  • What is XState used for?
    9 projects | dev.to | 21 Jun 2022
    replace global state managers like Redux or Vuex
  • Redux Best Practices
    5 projects | dev.to | 19 Jun 2022
    Redux is a library used for global state management, meaning if you have a piece of state that you want to access in different places of your app, you can use Redux to manage that state and make it easily accessible anywhere. The global state can be anything from logged-in user information to UI state such as theme, etc.
  • How to use React with Redux
    5 projects | dev.to | 16 Jun 2022
    Now go ahead and import createSlice from the same library and create a reducer with it. createSlice is a wrapper around the old API from redux which reduces quite some boilerplate when creating reducers.
  • Prevent Acid Redux with Redux Toolkit
    3 projects | dev.to | 14 Jun 2022
    This post is going to help you get rid of the acid Redux associated with trying to use vanilla Redux.
  • React - Clean Architecture - Redux Toolkit
    5 projects | dev.to | 11 Jun 2022
  • Tech Explained - a low-level primer on frontend technology
    1 project | dev.to | 9 Jun 2022
    Redux Docs

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 2022-07-01.

What are some alternatives?

When comparing redux and SWR you can also consider the following projects:

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]

zustand - 🐻 Bear necessities for state management in React

axios - Promise based HTTP client for the browser and node.js

valtio - 💊 Valtio makes proxy-state simple for React and Vanilla

redux-saga - An alternative side effect model for Redux apps

use-local-storage-state - React hook that persists data in localStorage

redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development

effector-react - Business logic with ease ☄️

react-hook-form - 📋 React Hooks for form state management and validation (Web + React Native)

xstate - State machines and statecharts for the modern web.