Skip to main content Link Menu Expand (external link) Document Search Copy Copied

usePath

Get the current decodeURIComponent-ed path of the page. If basePath is provided and missing from the current path null is returned.

API

export function usePath(basePath?: string): string