0.0.5 • Published 6 years ago
react-xedd v0.0.5
React-Xedd
React-Xedd is the dead simple state-manager-ish that will make your "Prop Drilling" a thing of the past.
- Easy to use and integrate
- No boilerplate
- Minimal react code changes
- Magic
How it works!
React-Xedd uses streams with a pub/sub model, any component can publish to the stream and any component can subscribe to a stream. any to any relationship.
Installation
$ npm install react-xedd
Then import it in your code
import xedd from "react-xedd";
publish changes
xedd.publish(<STREAM_NAME>, value);
listen for changes
xedd.subscribe(<STREAM_NAME>, callback);
Cheers!