Files
freeCodeCamp/packages/learn/src/head/preloads.js

14 lines
257 B
JavaScript
Raw Normal View History

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