UNPKG

wouter-preact

Version:

Minimalist-friendly ~1.5KB router for Preact

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