Managing state isn’t always about Redux, Zustand, or Context. Sometimes the best “state store” is already built into the browser: 👉 Search Params (URL state). Let’s break down why you should use them, with examples 🧵
1
1
4
401
1
What search params are: 🔍 Search params = the ?key=value part of your URL. Example: /products?category=shoes&page=2 That’s not just navigation, it’s state encoded into the URL. category=shoes → only shoes page=2 → page two Any component can read this instantly.
Why use search params for state? Shareable -: Copy-paste the link, and another user sees the exact same filters, tab, or page. Persistence -: Refresh the page, the state is still there. History support -: Browser back/forward works naturally.