RE

React Rx

react-rx

React + RxJS = <3

Hooks
action
behavior
concurrent
es6
events
external
hooks
observables
observe
pipe
Stars
70
Weekly
612k
Open issues
9
Bundle
~25 kB

Installation

npm install react-rx

Code example

import { useRx } from "react-rx";

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

Pros & cons

Pros

  • Actively maintained by Sanity.io <hello@sanity.io>
  • 612k weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

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

FAQs

Alternatives & similar libraries