UNPKG

@ace-fetch/react

Version:

react adapter for @ace-fetch/core.

16 lines (15 loc) 320 B
export function createFetch(client) { var _p = []; var fetch = { use: function (plugin) { _p.push(plugin); return this; }, // store regist apis _r: new Map(), // regist api plugins _p: _p, client: client, }; return fetch; }