@vmgresorts/ajaxfn
v1.0.2
Published
Simple ajax function handler
Downloads
3
Readme
AjaxFn
it does a thing
WARNING This package was specifically built for use in internal projects at VMG Resorts; this will more than likely not work in your use case. You've been warned. :)
tl;dr use
import AjaxFn from '@vmgresorts/AjaxFn';
AjaxFn({
url: "/your/api/endpoint",
data: {
// ...
},
success: res => console.log(res),
failure: err => console.log(err),
finally: () => console.log("done")
});