How to use SASS in Next.js

April 14, 2022 A Goodman

SASS (Syntactically Awesome Style sheets) can make your life much easier when writing CSS code with variables, nesting, mixins, and other amazing features. This succinct article shows you how to use SASS in Next.js. The Steps…

Using Styled JSX in Next.js: Tutorial & Examples

April 14, 2022 Pennywise

This article walks you through two complete examples of using styled JSX in Next.js. The first example helps you learn the syntax of styled JSX and shows you how to use local and global styles. The…

Next.js: Retrieve URL Params from Dynamic Routes

March 4, 2022 A Goodman

You can extract segment data from a dynamic route in Next.js by using the useRouter hook. Let’s say the pages folder of a Next.js project has a structure as follows: Then we can access a URL…

Passing data via a Link component in Next.js

May 21, 2022 A Goodman

This concise article is about passing and retrieving data with Link components in Next.js. We’ll discuss the technique (just a few words) then examine a complete example of applying that technique in practice. Overview You can…

Next.js: Parsing Query String Parameters

September 10, 2022 A Goodman

In Next.js, you can get the query string parameters of a URL by using the useRouter hook, like this: For more completeness and clarity, see the example below. Example Let’s say you have a products page…

Next.js: Disable Server-Side Rendering on Specific Pages

September 10, 2022 A Goodman

There may be cases where you want to disable server-side rendering (SSR) on one or some specific pages of your Next.js application, such as you get some warnings or errors when using a third-party library due…

1 2