12 lines
312 B
JavaScript
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;
|