Files
freeCodeCamp/client/src/head/preloads.js
2019-02-19 14:30:27 +05:30

12 lines
312 B
JavaScript

import React from 'react';
import styleSheets from './styleSheets';
const preloads = styleSheets.map(styleSheet => (
<React.Fragment key={`preload-${styleSheet.props.href}`}>
<link as='style' href={styleSheet.props.href} rel='preload' />
{styleSheet}
</React.Fragment>
));
export default preloads;