react-q
react-q is a plugin for react, the flow control rules engine, which adds integration with jQuery-style Deferred promises
For more information on react
the lightweight flow control rules engine: http://github.com/jeffbski/react
Goals
- make it easy to use React defined functions, promise style and in this case with promises that are compatible with Q promises https://github.com/kriskowal/q
- if a react defined flow function is called without a callback, then a Q promise is returned
- if promises are passed in as input parameters, they will automatically be resolved before tasks are called
Installing
npm install react-q
OR
Pull from github - http://github.com/jeffbski/react-q
Example
var react = ; // enable Q-style promise integration, return react// react.logEvents(); // to enable logging to stderr of flow and task events { ;} { ;} { return user + data;} var fn = ; var promise = ; // calling without passing in cbpromise;
License
Contributors
- Author: Jeff Barczewski (@jeffbski)
Contributing
-
Source code repository: http://github.com/jeffbski/react-q
-
Ideas and pull requests are encouraged - http://github.com/jeffbski/react-q/issues
-
You may contact me at @jeffbski or through github at http://github.com/jeffbski