React components for subscribing to Dew store.
Component
- An abstract react component that uses aDew.Store
to manage its own state that it creates itself.Provider
- Provides a map ofDew.Store
objects into the react context. Extends and merges to an existingProvider
map if a parent object is already using a provider.Consumer
- An abstract react component that provides astoreMap
property to access providedDew.Store
objects by aProvider
. Also includessubscribe
andunsubscribe
functions to asist in bindingDew.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 specifiedDew.Store
propertystore
. Requires this storesstate$
obersvable to have a state that is a subset of the state of theBoundConsumer
state.