Next.js Tutorials
Let's Sharpen Your Frontend Skills
How to Create Non-Flickering Dark/Light Mode Toggle in Next.js Using localStorage?
Learn how to implement a seamless dark/light mode toggle in your Next.js application without the annoying flicker that often occurs during page load. This comprehensive guide covers step-by-step code to help you get started.How to Create Non-Flickering Dark/Light Mode Toggle in Next.js Using Cookies?
Learn how to implement a seamless dark/light mode toggle in your Next.js application without the annoying flicker that often occurs during page load. This comprehensive guide covers step-by-step code to help you get started.How to Add/Update Query Params in a Next.js Client Component?
Learn how to dynamically add or update URL query params within a Next.js client component. Knowing this will help you control and synchronize URL query params, improving navigation and interaction in your Next.js applications.How to Get Query Params in Next.js Middleware?
Discover different ways in which you can get query parameters in the Next.js middleware. Knowing this will help you efficiently handle and process URL query data in your Next.js applications.How to Import Partial Sass Files in Next.js CSS Modules?
Learn how to efficiently import partial Sass files into your Next.js projects using CSS Modules. Discover the step-by-step process to organize and enhance your styles in a modular and maintainable way.Where Should the Next.js "middleware" File Be Added in the Project Directory?
The Next.js compiler automatically picks up certain files. One such file is themiddleware.js(or.ts) file. Find out where you should put this file in the project directory.How to Prevent Duplicate Font Loading in Next.js?
Find out how you can prevent the same font from loading multiple times in Next.js. Knowing this will help you optimize performance and ensure efficient resource utilization across your application.How to Avoid Repeated Database Calls in Next.js App Router?
Learn how to deduplicate database calls in Next.js App Router. Knowing this will help you avoid making the same database call multiple times, effectively streamlining your application's performance.How to Add a Background Image in a CSS File Using Next.js?
Discover how to seamlessly integrate background images into CSS files within your Next.js projects. Gain insight into Next.js' static asset serving and learn effective methods for referencing images in your CSS.