Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

next-dynamic-no-ssr

plugboy82MIT0.1.5TypeScript support: included

This is a simple NoSSR wrapper component for your nextjs project. The wrapper uses dynamic import to disable server-side rendering of a component.

next, nextjs, next.js, dynamic, server-side, rendering, ssr, no-ssr

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

License

MIT