mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-04 08:05:48 -05:00
17 lines
325 B
JavaScript
17 lines
325 B
JavaScript
import React from 'react';
|
|
import styleSheets from './styleSheets';
|
|
|
|
const preloads = styleSheets.map((styleSheet, i) => (
|
|
<React.Fragment>
|
|
<link
|
|
as='style'
|
|
href={styleSheet.props.href}
|
|
key={`preload-${i}`}
|
|
rel='preload'
|
|
/>
|
|
{styleSheet}
|
|
</React.Fragment>
|
|
));
|
|
|
|
export default preloads;
|