vcc-ui
Version:
VCC UI is a collection of React UI Components that can be used for developing front-end applications at Volvo Car Corporation.
18 lines (15 loc) • 462 B
JavaScript
import React from 'react';
import { renderToSheetList } from 'fela-dom';
export function StyleTags({ renderer }) {
const sheetList = renderToSheetList(renderer);
return sheetList.map(({ type, media, rehydration, support, css }) => (
<style
key={type + media}
media={media}
data-fela-rehydration={rehydration}
data-fela-type={type}
data-fela-support={support}
dangerouslySetInnerHTML={{ __html: css }}
/>
));
}