UNPKG

react-http-fetch

Version:

An http library for React JS built on top of native JS fetch

18 lines (17 loc) 685 B
import React from 'react'; import { HttpClientConfigProvider } from '../..'; var HttpClientProviderConfigFixture = /** @class */ (function () { function HttpClientProviderConfigFixture() { } HttpClientProviderConfigFixture.create = function (options) { if (options === void 0) { options = {}; } var fallenbackOptions = options; return function (_a) { var children = _a.children; var Provider = (React.createElement(HttpClientConfigProvider, { config: fallenbackOptions }, children)); return Provider; }; }; return HttpClientProviderConfigFixture; }()); export { HttpClientProviderConfigFixture };