UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

24 lines (18 loc) 658 B
'use strict'; 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;