Skip to main content

createPath

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

createPath

Framework Data Declarative

Summary

Reference Documentation ↗

Creates a string URL path from the given pathname, search, and hash components.

Signature

function createPath({
  pathname = "/",
  search = "",
  hash = "",
}: Partial<Path>)

Params

path

The pathname, search, and hash components to combine.

Returns

The combined URL path.