@shopify/react-network
Version:
A collection of components that allow you to set common HTTP headers from within your React application
16 lines (11 loc) • 323 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var network = require('@shopify/network');
var hooks = require('../hooks.js');
function PrefetchSource({
sources
}) {
hooks.useCspDirective(network.CspDirective.PrefetchSrc, sources);
return null;
}
exports["default"] = PrefetchSource;