UNPKG

wouter

Version:

Minimalist-friendly ~1.5KB router for React

8 lines (5 loc) 211 B
import { Path } from "./location-hook.js"; export function navigate<S = any>(to: Path, options?: { state: S }): void; export function useHashLocation(options?: { ssrPath?: Path; }): [Path, typeof navigate];