1.0.2 • Published 6 years ago

@vmgresorts/ajaxfn v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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")
});

Peer Dependencies