Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 552 Bytes

File metadata and controls

35 lines (23 loc) · 552 Bytes

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/>

License

MIT