Skip to main content

resolvePath

还没翻译译自英文(reactrouter.com)本页 15 段都还没译

resolvePath

Framework Data Declarative

Summary

Reference Documentation ↗

Returns a resolved Path object relative to the given pathname.

Signature

function resolvePath(to: To, fromPathname = "/"): Path

Params

to

The path to resolve, either a string or a partial Path object.

fromPathname

The pathname to resolve the path from. Defaults to /.

Returns

A Path object with the resolved pathname, search, and hash.