FL

Flux

flux

An application architecture based on a unidirectional data flow

Utilities
flux
react
facebook
dispatcher
Utilities
javascript
npm
frontend
open source
ui
Stars
17k
Weekly
1.3M
Open issues
6
Bundle
~25 kB

Installation

npm install flux

Code example

import { useFlux } from "flux";

export function Example() {
  const value = useFlux();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by Facebook
  • 1.3M weekly downloads. Battle tested
  • BSD-3-Clause licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 6 open issues on GitHub

FAQs

Alternatives & similar libraries