Nextjs
React
Javascript
Webdev
Web development

How To Keep Component State Across Pages in Next.js

Using the session storage & useLayoutEffect

Published on

Enjoyed this article?

Share it with your network to help others discover it

Continue Learning

Discover more articles on similar topics

The Backend-for-Frontend pattern using NextJS: A Step-by-Step Guide

The Backends-for-Frontends pattern might be exactly what you need to avoid monolithic Backend APIs and Frontends bloated with business logic. Let's implement one in Next.js, using WunderGraph as a BFF framework.

NextjsTypescriptBff

Next.js With Sequelize Web Application, a Full-Stack Web Development

Next.js has become more advance and cutting edge to developers for use as a Full-Stack web Application. The community and people behind Vercel have done a great job on Next.js future.

NextjsSequelizeNodejs

Which Database Should You Use for Your Next.js App?

PostgreSQL, Fauna, MongoDB, WunderBase. There are a lot of options out there. How to choose the right database based on performance, price, scalability, and developer experience.

NextjsDatabasePostgresql

How To Solve Hydration Error In Next.js

Today, let’s talk about hydration error that often occurs in Next.js. Most of us used Next.js must be familiar with the following error: The reason for the error has been clearly stated in the error…

JavaScriptNextjsWeb Development

Building a Modern SaaS Dashboard with Saas UI and Next.js App Router

Dashboards are essential for every SaaS app, and UI libraries do help you build them fast, but Emotion.js-based libraries are problematic in Next.js 13. Let's look at how Saas UI can help.

NextjsReactNext app router

How To Connect MySQL And Auth To A Next.js App

Today, we will connect our Next.js app to MySQL database and develop an authentication feature.

NextjsMysqlAuthentication