Skip to content

Instantly share code, notes, and snippets.

@Phineas
Created July 25, 2022 17:34
Show Gist options
  • Save Phineas/c8fb9b94923566319f46cdee25c8fa15 to your computer and use it in GitHub Desktop.
Save Phineas/c8fb9b94923566319f46cdee25c8fa15 to your computer and use it in GitHub Desktop.
import dynamic from "next/dynamic";
import { ReactNode } from "react";
const NoSsrComponent = (props: { children: ReactNode }) => (
<>{props.children}</>
);
export default dynamic(async () => NoSsrComponent, {
ssr: false,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment