Fetching package from npm...
Put state in the URL in a plain React app with no router — Vite, Create React App, a widget mounted into someone else's page — with useUrlState from state-in-url/react. Covers why no useUrlState is exported from the package root (every one is tied to a framework), the cross-component sharing model that makes prop drilling unnecessary, and building your own hook with useUrlStateBase for a router that has no entry point of its own, such as TanStack Router. Load this skill when the project has no router at all, or a router with no state-in-url subpath.