How to Disable SSR for a Next.js Page

How to Disable SSR for a Next.js Page

In this article, we will go over two different ways to opt-out of serer side rendering in NextJS.

You may want to disable server-side rendering or static site generation for some of your NextJS pages or components. For example, this is useful when using modules that only work in the browser. Or if your component needs to access some properties only available in the browser, like the window object or localStorage. Another reason you may want to disable server-side rendering for a component or an entire page is to lower your bundle size, as not all users will require this functionality.

In this article, we will go over two different ways to opt-out of serer side rendering in NextJS.

javascript frontend nextjs react

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

How native is React Native? | React Native vs Native App Development

Article covers: How native is react native?, React Native vs (Ionic, Cordova), Similarities and difference between React Native and Native App Development.

What’s The Difference Between NextJS and Create-React-App?

Let’s go over the advantages and disadvantages of NextJS and Create-React-App. We will also cover which use cases and scenarios are better suited for one over the other.

Increase Performance of React Applications Via Array JavaScript Methods

Increase Performance of React Applications Via Array JavaScript Methods. We will create a simple event management application in the react to add, update, and delete an event.

Top VSCode Extensions for React, React Native, JavaScript and Productivity

Bunch of VSCode Extensions that improve quality of your coding time no matter what stack you are using. In this post, you'll see Top VSCode Extensions for React, React Native, JavaScript and Productivity

React Hooks: The Difference Between useMemo and useCallback

React library provides us two built-in hooks to optimize the performance of our app: useMemo & useCallback. At first glance, it might look like their usage is quite similar, so it can get confusing about when to use each. To clear that confusion, let’s dig in and understand the actual difference and the correct way to use them both.