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

Flux

523
504
+ 1
130
Redux

29.7K
22.1K
+ 1
663
Add tool

Flux vs Redux: What are the differences?

Developers describe Flux as "Application Architecture for Building User Interfaces". 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. On the other hand, Redux is detailed as "Predictable state container for JavaScript apps". Redux helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. On top of that, it provides a great developer experience, such as live code editing combined with a time traveling debugger.

Flux belongs to "Javascript UI Libraries" category of the tech stack, while Redux can be primarily classified under "State Management Library".

"Unidirectional data flow" is the top reason why over 43 developers like Flux, while over 175 developers mention "State is predictable" as the leading cause for choosing Redux.

Flux and Redux are both open source tools. Redux with 49.5K GitHub stars and 12.8K forks on GitHub appears to be more popular than Flux with 16.2K GitHub stars and 3.62K GitHub forks.

According to the StackShare community, Redux has a broader approval, being mentioned in 1036 company stacks & 836 developers stacks; compared to Flux, which is listed in 67 company stacks and 29 developer stacks.

Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Flux
Pros of Redux
  • 44
    Unidirectional data flow
  • 32
    Architecture
  • 19
    Structure and Data Flow
  • 14
    Not MVC
  • 12
    Open source
  • 6
    Created by facebook
  • 3
    A gestalt shift
  • 191
    State is predictable
  • 149
    Plays well with React and others
  • 125
    State stored in a single object tree
  • 78
    Hot reloading out of the box
  • 73
    Allows for time travel
  • 14
    You can log everything
  • 11
    Great tutorial direct from the creator
  • 6
    Endorsed by the creator of Flux
  • 6
    Test without browser
  • 5
    Easy to debug
  • 2
    Enforces one-way data flow
  • 2
    Granular updates
  • 1
    Blabla

Sign up to add or upvote prosMake informed product decisions

Cons of Flux
Cons of Redux
    Be the first to leave a con
    • 12
      Lots of boilerplate
    • 6
      Verbose
    • 5
      Design
    • 4
      Steeper learning curve than RxJs
    • 4
      Steeper learning curve than MobX
    • 4
      Steep learning curve

    Sign up to add or upvote consMake informed product decisions

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

    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 Flux and Redux as a desired skillset
    What companies use Flux?
    What companies use Redux?
    See which teams inside your own company are using Flux or Redux.
    Sign up for StackShare EnterpriseLearn More

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

    What tools integrate with Flux?
    What tools integrate with Redux?

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

    Blog Posts

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

    LogRocket

    JavaScriptReactAngularJS+8
    5
    1913
    JavaScriptGitHubNode.js+29
    14
    13237
    GitHubPythonReact+42
    49
    40502
    GitHubPythonNode.js+47
    54
    71928
    What are some alternatives to Flux and Redux?
    Flow
    Flow is an online collaboration platform that makes it easy for people to create, organize, discuss, and accomplish tasks with anyone, anytime, anywhere. By merging a sleek, intuitive interface with powerful functionality, we're out to revolutionize the way the world's productive teams get things done.
    Mono
    It is a software platform designed to allow developers to easily create cross platform applications part of the .NET Foundation. It is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime.
    jQuery
    jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML.
    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.
    AngularJS
    AngularJS lets you write client-side web applications as if you had a smarter browser. It lets you use good old HTML (or HAML, Jade and friends!) as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. It automatically synchronizes data from your UI (view) with your JavaScript objects (model) through 2-way data binding.
    See all alternatives