npm installthe package you want to use:
refract-rxjsto send data to localstorage.
usernameprop 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
localstorage) under the key
value. Each time an effect with the correct type is emitted from this pipeline, the handler calls
localstorage.setItemwith the effect's
handler- and shows how they can be integrated into a React component via the
aperturecontrols 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
effectvalues in response.
handleris a function which causes side-effects in response to