React-Scax
React-Scax is an NPM package intended to synchronize AJAX calls and JavaScript Promise resolution in React Application.
Installation
Use the package manager npm to install react-scax.
npm install react-scax
Usage
Quick Start
const createPromise = Template const POOL_NAME = 'pool'const SCAXER_NAME = 'scaxer' const pool = poolconst scaxer = pool Component { return <div> <button onClick=scaxercall>Click</button> <div>data: scaxer </div> <div>status: scaxer </div> </div> }
with TypeScript
Type define for Scaxer
Scaxer configuration
Pool initiation
Get and Call Scaxer
scaxerII = pool.getScaxerSCAXER_NAME_IIscaxerII.call
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.