JSPM

  • Created
  • Published
  • Downloads 37634
  • Score
    100M100P100Q147277F
  • License MIT

React hooks for RxJS Observables with powerful APIs.

Package Exports

  • observable-hooks

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (observable-hooks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

observable-hooks

npm-version Build Status Coverage Status

Commitizen friendly Conventional Commits JavaScript Style Guide code style: prettier

React hooks for RxJS Observables with powerful APIs.

  • Seamless integration of React and RxJS.
    • Props and states to Observables?
    • Observables to props events?
    • "setState" with one type then state value gets different type?
    • Stream of React Components???
  • Full-powered RxJS. Do what you normally do with Observables. No limitation or compromise.
  • Lightweight and fast. No heavy computations.
  • Fully tested.

Installation

yarn

yarn add observable-hooks

npm

npm install --save observable-hooks

Usage

Read the doc here.

Examples are in here. Play on CodeSandbox:

Note that there are also some useful utilities for common use cases.

All available APIs can be imported from the entry.

import { ... } from 'observable-hooks'

Here is how I designed the APIs.

mindmap