Skip to main content

parsePath

parsePath

Framework Data Declarative

Summary

Reference Documentation ↗

Parses a string URL path into its separate pathname, search, and hash components.

Signature

function parsePath(path: string): Partial<Path>

Params

path

The URL path to parse.

Returns

The parsed pathname, search, and hash components.

Translation © 2026 fanyi.dev · Original © 2026 React Training LLC, Remix Software Inc., Shopify Inc. (MIT)