2018-04-18 11:15:32 +01:00
|
|
|
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>
|
2018-04-18 11:15:32 +01:00
|
|
|
));
|
|
|
|
|
|
|
|
export default preloads;
|