Skip to content

Instantly share code, notes, and snippets.

@Phineas
Created July 25, 2022 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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