URL as State: Managing Form State with Query Parameters

State stored only in React is lost on refresh, cannot be bookmarked, and breaks the back button. Syncing form state to the URL with nuqs gives you all three for free — and makes your state explicit by default.

June 7, 20261 min read1 / 4