A Hook that takes a Promise, and 2 callbacks for success, and error, and return a handler to execute the promise.
const [actionHandler, loading, {data, error}] =
useAction(promiseFunction, (data)=> {}, (error)=> {}, {renderOnStart:true/false, callOnEffect:true/false});