rxjs-dew-react
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

RxJs Dew React

React components for subscribing to Dew store.

  • Component - An abstract react component that uses a Dew.Store to manage its own state that it creates itself.
  • Provider - Provides a map of Dew.Store objects into the react context. Extends and merges to an existing Provider map if a parent object is already using a provider.
  • Consumer - An abstract react component that provides a storeMap property to access provided Dew.Store objects by a Provider. Also includes subscribe and unsubscribe functions to asist in binding Dew.Store objects either from the provided map or created by the consumer to the consumers state.
  • BoundConsumer - A convenience abstract react component that subscribes to a single specified Dew.Store property store. Requires this stores state$ obersvable to have a state that is a subset of the state of the BoundConsumer state.

Readme

Keywords

Package Sidebar

Install

npm i rxjs-dew-react

Weekly Downloads

20

Version

1.1.0

License

Apache-2.0

Unpacked Size

27.9 kB

Total Files

21

Last publish

Collaborators

  • elhedran