---
title: "Discussion on \"How to Lift Component State to the URL in Next.js/React.js\" | Hashnode"
description: "Discussion on \"How to Lift Component State to the URL in Next.js/React.js\". Learn how to lift component state to the URL in NextJs/ReactJs for seamless user experience in SPAs"
url: "https://hashnode.com/posts/how-to-lift-component-state-to-the-url-in-nextjsreactjs/66be8c23c8ba601aba4f7178"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Lift Component State to the URL in Next.js/React.js](https://olalekanemmanuel.hashnode.dev/how-to-lift-component-state-to-the-url-in-nextjsreactjs?utm_source=hashnode&utm_medium=feed)

Learn how to lift component state to the URL in NextJs/ReactJs for seamless user experience in SPAs

Aug 15, 2024 · 11 min read · olalekanemmanuel.hashnode.dev  
Read the article

-   [#search-params](https://hashnode.com/tag/search-params)
-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[Alabi Olalekan Emmanuel](https://hashnode.com/@Lekanjoy)

@Lekanjoy · Lagos, Nigeria

  
[View profile](https://hashnode.com/@Lekanjoy)

Frontend Developer

I am a Frontend Developer who is diving into writing to document my experience and also help others find their foot in the little way that I can.

## Responses 1

Markdown supported · ⌘↵ to post

[PDF Flex](https://hashnode.com/@xzc)

[Nov 12, 2024](https://hashnode.com/posts/how-to-lift-component-state-to-the-url-in-nextjsreactjs/66be8c23c8ba601aba4f7178/comment/6733c19547a460727a179cb6)

The [white label casino solutions](https://isoftgamble.com/white-label/) website offers software that fully meets the requirements of a modern casino. Their products are characterized by a high level of security, flexibility, and fast integration with other platforms. The team is constantly introducing new features and following industry trends. I especially like the fact that the programs are adapted for mobile devices, which allows you to reach a wider audience. This is the future of casino software solutions.

[Aleksandr Smyshlyaev](https://hashnode.com/@asmyshlyaev177)

[Nov 8, 2024](https://hashnode.com/posts/how-to-lift-component-state-to-the-url-in-nextjsreactjs/66be8c23c8ba601aba4f7178/comment/672e87fe6b76573a07c84c1c)

I would rather use existing library, implementing it from scratch surely educational but isn't easy. For example [github.com/asmyshlyaev177/state-in-url](https://github.com/asmyshlyaev177/state-in-url)

[Alabi Olalekan Emmanuel](https://hashnode.com/@Lekanjoy)

[Nov 9, 2024](https://hashnode.com/posts/how-to-lift-component-state-to-the-url-in-nextjsreactjs/66be8c23c8ba601aba4f7178/comment/672e87fe6b76573a07c84c1c#reply-672fc04410486eb92e1125dc)

Absolutely. This is more of a beginner approach to this so as to know how everything works under the hood.

Nice library you have there by the way, I’ve used nuqs but I’ll definitely try it yours in my next project.
