Files
freeCodeCamp/client/src/head/preloads.js

12 lines
312 B
JavaScript
Raw Normal View History

import React from 'react';
import styleSheets from './styleSheets';
2019-02-16 08:20:53 +00:00
const preloads = styleSheets.map(styleSheet => (
<React.Fragment key={`preload-${styleSheet.props.href}`}>
<link as='style' href={styleSheet.props.href} rel='preload' />
2018-09-13 12:43:29 +03:00
{styleSheet}
</React.Fragment>
));
export default preloads;