@dndbuilder.com/react
Version:
Drag and drop builder for React
18 lines (17 loc) • 782 B
TypeScript
import { FC, ReactNode } from 'react';
import { FrameProps } from './frame';
export type RenderFrameProps = {
children: ReactNode;
} & FrameProps;
export declare const RenderFrame: FC<RenderFrameProps>;
/**
* Client-side only wrapper for RenderFrame to prevent hydration mismatches
* in server-side rendering environments like Next.js.
*
* This component uses the useEffect hook to initialize browser-specific code
* only on the client side, and ensures the initial server render matches
* what will be rendered on the client before any effects run.
*/
export declare function ClientOnlyRenderFrame({ children, ...props }: RenderFrameProps): import("react/jsx-runtime").JSX.Element | null;
export default ClientOnlyRenderFrame;
//# sourceMappingURL=render-frame.d.ts.map