jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
17 lines (14 loc) • 400 B
JavaScript
import { useEffect } from 'react';
import { stylesheetSingleton } from './singleton.js';
var styleHookSingleton = function () {
var sheet = stylesheetSingleton();
return function (styles) {
useEffect(function () {
sheet.add(styles);
return function () {
sheet.remove();
};
}, []);
};
};
export { styleHookSingleton };