Why Refract
.npm install
the package you want to use:refract-rxjs
to send data to localstorage.username
prop changes, its new value is sent into the stream. The stream debounces the input for two seconds, then maps it into an object (with a type
of localstorage
) under the key value
. Each time an effect with the correct type is emitted from this pipeline, the handler calls localstorage.setItem
with the effect's name
and value
properties.aperture
and a handler
- and shows how they can be integrated into a React component via the withEffects
higher-order component.aperture
controls the streams of data entering Refract. It is a function which observes data sources within your app, passes this data through any necessary logic flows, and outputs a stream of effect
values in response.handler
is a function which causes side-effects in response to effect
values.