next-dynamic-no-ssr
v0.1.5
Published
This is a simple NoSSR wrapper component for your nextjs project. The wrapper uses dynamic import to disable server-side rendering of a component.
Downloads
40
Maintainers
Readme
About
This is a simple NoSSR wrapper component for your nextjs project. The wrapper uses dynamic import to disable server-side rendering of a component.
Installation
npm install next-dynamic-no-ssr
or
pnpm add next-dynamic-no-ssr
Import
import { NoSSR } from "next-dynamic-no-ssr";
Usage
To disable server-side rendering of your component, simply wrap your component with the NoSSR component.
<NoSSR>
<YourComponent />
<NoSSR/>