createPath
On this page

createPath

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.

Docs and examples CC 4.0
Edit