14 lines
257 B
JavaScript
14 lines
257 B
JavaScript
![]() |
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;
|