2018-04-18 11:15:32 +01:00
|
|
|
import React from 'react';
|
|
|
|
import styleSheets from './styleSheets';
|
|
|
|
|
|
|
|
const preloads = styleSheets.map((styleSheet, i) => (
|
2018-09-13 12:43:29 +03:00
|
|
|
<React.Fragment>
|
|
|
|
<link
|
|
|
|
as='style'
|
|
|
|
href={styleSheet.props.href}
|
|
|
|
key={`preload-${i}`}
|
|
|
|
rel='preload'
|
|
|
|
/>
|
|
|
|
{styleSheet}
|
|
|
|
</React.Fragment>
|
2018-04-18 11:15:32 +01:00
|
|
|
));
|
|
|
|
|
|
|
|
export default preloads;
|