MCPcopy Create free account
hub / github.com/dailydotdev/apps / withNoSSR

Function withNoSSR

packages/shared/src/lib/withNoSSR.ts:4–7  ·  view source on GitHub ↗
(Component: ComponentType<T>)

Source from the content-addressed store, hash-verified

2import type { ComponentType } from 'react';
3
4export const withNoSSR = <T>(Component: ComponentType<T>): ComponentType<T> =>
5 dynamic<T>(() => Promise.resolve<ComponentType<T>>(Component), {
6 ssr: false,
7 });

Callers 1

HeaderLogo.tsxFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected