chore(learn): Merge learn in to the client app
This commit is contained in:
16
client/src/head/preloads.js
Normal file
16
client/src/head/preloads.js
Normal file
@@ -0,0 +1,16 @@
|
||||
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;
|
Reference in New Issue
Block a user