raix
Async request extensions for React
Install
npm install --save raix
How to use
Example
API
beforeRequest, afterRequest
example:
const beforeRequest = const afterRequest = resultstatus === 200 beforeRequest afterRequestExample
init, data, formatter
example:
const init = name: 'example'const data = url: 'http://localhost:8000/api/test'const formatter = resultdata <RaixExample init=init data=data formatter=formatter />
License
MIT