jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
24 lines (18 loc) • 658 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
var singleton = require('./singleton.js');
var styleHookSingleton = function () {
var sheet = singleton.stylesheetSingleton();
return function (styles) {
React.useEffect(function () {
sheet.add(styles);
return function () {
sheet.remove();
};
}, []);
};
};
exports.styleHookSingleton = styleHookSingleton;