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