beautiful-react-hooks
Version:
A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development
8 lines (7 loc) • 323 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Exports a boolean value reporting whether is client side or server side by checking on the window object
*/
var isClient = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
exports.default = isClient;