react-router VS redux

Compare react-router vs redux and see what are their differences.

redux

A JS library for predictable global state management (by reduxjs)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
react-router redux
156 268
51,877 60,449
0.4% 0.3%
9.5 9.0
5 days ago 10 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.

react-router

Posts with mentions or reviews of react-router. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-18.
  • Free Resources Every Web Developer Should Know About
    15 projects | dev.to | 18 Mar 2024
    React Router (https://reactrouter.com/)
  • Stateful React Pages using URLSearchParams and Local/Session Storage
    2 projects | dev.to | 4 Jan 2024
    React Router DOM provides an intuitive way of managing the URL search value of a webpage, it provides the useSearchParams hook that allows accessing the webpage URL search values and also changing the values without reloading the active webpage.
  • The 20 most used React libraries
    9 projects | dev.to | 29 Dec 2023
    react-router-dom: Simplifies client-side routing for multi-page web apps. Learn more
  • Where to study typescript from Beginner to Advanced with actual real examples??
    2 projects | /r/typescript | 10 Dec 2023
    https://github.com/primer/react https://github.com/remix-run/react-router
  • Want to raise the bar 💯
    4 projects | /r/FlutterDev | 8 Dec 2023
    Hello and welcome! It's fantastic that you're looking to broaden your expertise in front-end development. Transitioning from Flutter to React and Angular is a great move, as it will provide you with a well-rounded skill set. ### Resources for Learning React: 1. **Official Documentation:** Start with the [official React documentation](https://reactjs.org/). It's well-written and comprehensive. 2. **React Fundamentals Courses:** Platforms like [freeCodeCamp](https://www.freecodecamp.org/) and [Codecademy](https://www.codecademy.com/) offer free React courses. 3. **React Hooks:** Understand the concept of hooks, a powerful feature in React. The [React Hooks documentation](https://reactjs.org/docs/hooks-intro.html) is a great resource. 4. **Project-Based Learning:** Build small projects to apply your knowledge. You can find ideas on platforms like [GitHub](https://github.com/) or [CodePen](https://codepen.io/). 5. **React Router:** Learn how to handle navigation in React using [React Router](https://reactrouter.com/). ### Resources for Learning Angular: 1. **Official Documentation:** Similar to React, start with the [official Angular documentation](https://angular.io/). 2. **Angular Tour of Heroes:** This is a hands-on tutorial provided in the Angular documentation. It's an excellent resource for getting started. 3. **Angular University:** [Angular University](https://angular-university.io/) offers comprehensive courses on Angular. 4. **RxJS:** Learn about reactive programming using RxJS, which is heavily used in Angular. You can find resources on the [official RxJS documentation](https://rxjs.dev/). 5. **Build Real-World Apps:** Build practical applications to solidify your understanding. The more you code, the better you'll become. ### Making a Mark in the Open-Source Front-End Space: 1. **GitHub Contributions:** Contribute to existing open-source projects. This not only helps you learn but also establishes your presence in the community. 2. **Create Your Projects:** Start small with your open-source projects. Share them on GitHub, and seek feedback from the community. 3. **Participate in Hackathons:** Join online hackathons or coding challenges. They're great for learning and networking. 4. **Follow Blogs and Newsletters:** Stay updated with the latest trends and best practices in the front-end world. Subscribe to newsletters like [JavaScript Weekly](https://javascriptweekly.com/) or [React Status](https://react.statuscode.com/). 5. **Join Forums and Communities:** Engage with developers on platforms like [Stack Overflow](https://stackoverflow.com/) or specialized forums for React and Angular. Remember, the key is consistent practice and learning by doing. Good luck on your journey, and feel free to reach out if you have more questions! 🚀
  • The art of conditional rendering: Tips and tricks for React and Next.js developers
    6 projects | dev.to | 30 Oct 2023
    Conditional rendering also enables client-side routing in single-page React apps, such as the react-router package.
  • 13 Must Know Libraries for a React Developer
    12 projects | dev.to | 15 Aug 2023
    React Router is the most popular library to implement routing in React apps. It has more than 50K stars on GitHub and more than 10 million weekly downloads on NPM and it's built by the same team behind the popular Remix framework of React.
  • Building a React/Express Stripe Donation Form
    3 projects | dev.to | 29 Jul 2023
    My preferred React stack is Vite (it’s french for fast), MUI (with icons), React Query, and React Router. I’m also a heathen who refuses to learn Typescript. In this case, because it’s an incredibly simple plug-in, we won’t be using a router.
  • How to use react router correctly
    1 project | /r/react | 23 Jun 2023
    I'm sure i'm missing something / reinventing the wheel or definitely using react-router-dom not the proper way, but in this manner i get to solve a little issue of react-router-dom being found here: Update search params without re-rendering everything · remix-run/react-router · Discussion #9851 (github.com)
  • how should I render this dashboard ?
    1 project | /r/react | 6 May 2023

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 2024-04-12.
  • A Comprehensive Guide to React State Management
    3 projects | dev.to | 12 Apr 2024
    Redux
  • Full Stack Web Development Concept map
    11 projects | dev.to | 23 Mar 2024
    redux - Redux is a key tool used in managing state across an application. This can be used with any web technology including React, Vue and Angular docs
  • State Management Nx React Native/Expo Apps with TanStack Query and Redux
    8 projects | dev.to | 17 Feb 2024
    Redux is a client-state library.
  • Redux 101
    6 projects | dev.to | 3 Jan 2024
  • The 20 most used React libraries
    9 projects | dev.to | 29 Dec 2023
    react-redux: A powerhouse for efficient state management and data flow control. Learn more
  • React State Management in 2024
    5 projects | dev.to | 8 Dec 2023
    Reducer-based: requires dispatching actions to update a big centralised state, often called a “single source of truth”. In this group, we have Redux and Zustand.
  • Redux Toolkit 2.0: new features, faster perf, smaller bundle sizes (plus major versions for all Redux family packages!)
    7 projects | /r/reactjs | 5 Dec 2023
  • Redux Toolkit 2.0: new features, faster perf, smaller bundle sizes, and more
    6 projects | news.ycombinator.com | 4 Dec 2023
    I am _thrilled_ to announce that:

    Redux Toolkit 2.0 is LIVE!!!

    - https://github.com/reduxjs/redux-toolkit/releases/tag/v2.0.0

    This major version has new features, faster perf, smaller bundle size, and removes deprecated options.

    It's accompanied by majors for all our Redux family packages

    ## RTK 2.0:

    - a new `combineSlices` method for lazy-loading reducers - Updates to `createSlice` to include a `selectors` field and allow defining thunks inside

    - Immer 10 w/ faster updates

    - Removal of deprecated options

    See the migration guide:

    - https://redux.js.org/usage/migrations/migrating-rtk-2

    All of the Redux libraries now have modernized packaging with full ESM/CJS compat. They also ship modern JS (no transpiling for IE11), which means smaller bundle sizes.

    We've also done byte-shaving work to shrink the bundles (extracting error messages, de-duping imports)

    ## Redux core 5.0:

    - The TS conversion we did in 2019!

    - Action types _must_ be strings

    - `UnknownAction` as the default action type

    - Better preloaded state types

    - Internal subscription improvements

    - Still marks `createStore` as deprecated!

    - https://github.com/reduxjs/redux/releases/tag/v5.0.0

    ## React-Redux 9.0:

    - *Now requires React 18 and RTK 2.0 / Redux 5.0*

  • HTML Data Attributes: One of the Original State Management Libraries
    5 projects | dev.to | 29 Nov 2023
    DEV is a Rails monolith, which uses Preact in the front-end using islands architecture. The reason why I mention all this is that it's not a full-stack JavaScript application, and there is no state management library like Redux or Zustand in use. The data store, for the most part on the front end, is all data attributes.
  • Blogged Answers: My Experience Modernizing Packages to ESM
    2 projects | news.ycombinator.com | 25 Nov 2023
    Oh hey, that's my post!

    (yes I spend too much time refreshing HN :) )

    FWIW I did end up with a packaging combination that seems to work sufficiently. I never did fix the "FalseCJS" issue that `are-the-types-wrong` is detecting. I played with double-emitting TS typedefs, and the `tsup` tool _does_ actually have support for that now (added by Andrew Branch from the TS team). So it might be more feasible now. But ultimately I decided I was tired of messing with packaging setup and that what I've got is good enough. (hopefully)

    We're actually about to launch Redux Toolkit 2.0 and Redux 5.0 this week, assuming the last couple pieces come together. Here's the latest RCs - you can see the current `package.json` files in there:

    - https://github.com/reduxjs/redux-toolkit/releases/tag/v2.0.0...

    - https://github.com/reduxjs/redux/releases/tag/v5.0.0-rc.1

What are some alternatives?

When comparing react-router and redux you can also consider the following projects:

wouter - 🥢 A minimalist-friendly ~2.1KB routing for React and Preact

zustand - 🐻 Bear necessities for state management in React

vite - Next generation frontend tooling. It's fast!

remix - Build Better Websites. Create modern, resilient user experiences with web fundamentals.

Router5 - Flexible and powerful universal routing solution

SWR - React Hooks for Data Fetching

react-router-redux

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

universal-router - A simple middleware-style router for isomorphic JavaScript web apps

swift-composable-architecture - A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.

esbuild - An extremely fast bundler for the web

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]