react-router-remix-setup

Community

Wire useUrlState into React Router or Remix

Authorasmyshlyaev177
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Ensures developers correctly integrate state-in-url’s useUrlState hook into React Router or Remix while matching the correct import path and navigation option behavior for each router version.

Core Features & Use Cases

  • Shared hook behavior across platforms: Keeps the hook signature, return shape, and core semantics consistent for React Router v6, v7, and Remix v2.
  • Correct per-call navigation options: Supports NavigateOptions-style controls like preventScrollReset, state, and replace to preserve UX expectations during URL-driven UI updates.
  • Avoids common migration and import pitfalls: Prevents breaking changes caused by using the wrong subpath for React Router v6 versus v7.
  • SSR and hydration considerations: Clarifies Remix v2 hydration behavior versus React Router CSR-only defaults.

Quick Start

Load the react-router-remix-setup skill and import useUrlState from state-in-url/react-router for v7, state-in-url/react-router6 for v6, or state-in-url/remix for Remix v2 while passing your desired NavigateOptions per setUrl call.

Dependency Matrix

Required Modules

feature-state-hook

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: react-router-remix-setup
Download link: https://github.com/asmyshlyaev177/state-in-url/archive/main.zip#react-router-remix-setup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.