All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.cjs.components.client-only.client-only.cjs Maven / Gradle / Ivy

Go to download

Responsive and accessible React UI components built with React and Emotion

The newest version!
"use strict";
"use client";
'use strict';

var jsxRuntime = require('react/jsx-runtime');
var React = require('react');
var show = require('../show/show.cjs');

const ClientOnly = (props) => {
  const { children, fallback } = props;
  const [hasMounted, setHasMounted] = React.useState(false);
  React.useEffect(() => {
    setHasMounted(true);
  }, []);
  return /* @__PURE__ */ jsxRuntime.jsx(show.Show, { when: hasMounted, fallback, children });
};

exports.ClientOnly = ClientOnly;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy