"use strict";
/*
Use this hook if you want to render with react
ONLY on the client.

This is much better than using process.browser,
since it will NOT render the thing on the server,
will render it on the client, and the react SSR
hydration will not be thrown off like it is with
process.browser.
*/
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = require("react");
function useIsClient() {
    const [loaded, setLoaded] = (0, react_1.useState)(false);
    (0, react_1.useEffect)(() => setLoaded(true), []);
    return loaded;
}
exports.default = useIsClient;
//# sourceMappingURL=is-browser.js.map