redux-saga vs redux-thunk vs Redux

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

redux-saga

425
348
+ 1
8
redux-thunk

747
182
+ 1
6
Redux

30.3K
23.1K
+ 1
674
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of redux-saga
Pros of redux-thunk
Pros of Redux
  • 7
    Easy to test
  • 1
    Easy to learn
  • 6
    Easy
  • 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

Sign up to add or upvote prosMake informed product decisions

Cons of redux-saga
Cons of redux-thunk
Cons of Redux
    Be the first to leave a con
      Be the first to leave a con
      • 13
        Lots of boilerplate
      • 6
        Verbose
      • 5
        Steep learning curve
      • 5
        Design
      • 4
        Steeper learning curve than RxJs
      • 4
        Steeper learning curve than MobX

      Sign up to add or upvote consMake informed product decisions

      - No public GitHub repository available -

      What is redux-saga?

      An alternative side effect model for Redux apps

      What is 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.

      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.

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

      Jobs that mention redux-saga, redux-thunk, and Redux as a desired skillset
      What companies use redux-saga?
      What companies use redux-thunk?
      What companies use Redux?

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

      What tools integrate with redux-saga?
      What tools integrate with redux-thunk?
      What tools integrate with Redux?

      Sign up to get full access to all the tool integrationsMake informed product decisions

      Blog Posts

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

      LogRocket

      JavaScriptReactAngularJS+8
      5
      1983
      JavaScriptGitHubNode.js+29
      14
      13523
      GitHubPythonReact+42
      49
      40811
      GitHubPythonNode.js+47
      55
      72496
      What are some alternatives to redux-saga, redux-thunk, and Redux?
      Cycle.js
      A functional and reactive JavaScript framework for predictable code
      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.
      Flux
      Flux is the application architecture that Facebook uses for building client-side web applications. It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.
      React
      Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
      RxJS
      RxJS is a library for reactive programming using Observables, to make it easier to compose asynchronous or callback-based code. This project is a rewrite of Reactive-Extensions/RxJS with better performance, better modularity, better debuggable call stacks, while staying mostly backwards compatible, with some breaking changes that reduce the API surface.
      See all alternatives