Redux vs vuex

Need advice about which tool to choose?Ask the StackShare community!

Redux

29.9K
22.8K
+ 1
674
vuex

1.4K
921
+ 1
7
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Redux
Pros of vuex
  • 191
    State is predictable
  • 150
    Plays well with React and others
  • 126
    State stored in a single object tree
  • 79
    Hot reloading out of the box
  • 74
    Allows for time travel
  • 14
    You can log everything
  • 12
    Great tutorial direct from the creator
  • 7
    Endorsed by the creator of Flux
  • 7
    Test without browser
  • 6
    Easy to debug
  • 3
    Enforces one-way data flow
  • 3
    Granular updates
  • 2
    Blabla
  • 2
    Debugging
  • 2
    Zero-config time-travel
  • 2
    Centralized State Management
  • 1
    Easy to setup
Cons of Redux
Cons of vuex
  • 13
    Lots of boilerplate
  • 6
    Verbose
  • 5
    Steep learning curve
  • 5
    Design
  • 4
    Steeper learning curve than RxJs
  • 4
    Steeper learning curve than MobX
    Be the first to leave a con
    - No public GitHub repository available -

    What is Redux?

    It helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. t provides a great experience, such as live code editing combined with a time traveling debugger.

    What is vuex?

    Vuex is a state management pattern + library for Vue.js applications. It serves as a centralized store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official devtools extension to provide advanced features such as zero-config time-travel debugging and state snapshot export / import.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Redux?
    What companies use vuex?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Redux?
    What tools integrate with vuex?

    Blog Posts

    JavaScriptGitHubReact+12
    5
    4131
    Oct 11 2019 at 2:36PM

    LogRocket

    JavaScriptReactAngularJS+8
    5
    1961
    Vue.jsSpring BootUnity+7
    2
    1198
    JavaScriptGitHubNode.js+29
    14
    13420
    GitHubPythonReact+42
    49
    40724
    GitHubPythonNode.js+47
    54
    72311
    What are some alternatives to Redux and vuex?
    MobX
    MobX is a battle tested library that makes state management simple and scalable by transparently applying functional reactive programming (TFRP). React and MobX together are a powerful combination. React renders the application state by providing mechanisms to translate it into a tree of renderable components. MobX provides the mechanism to store and update the application state that React then uses.
    redux-thunk
    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.
    redux-saga
    An alternative side effect model for Redux apps
    reselect
    Simple “selector” library for Redux (and others) inspired by getters in NuclearJS, subscriptions in re-frame and this proposal from speedskater.
    Zustand
    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.