React Router API Reference
    Preparing search index...

    Function resolvePath

    • Returns a resolved Path object relative to the given pathname.

      Parameters

      • to: To

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

      • fromPathname: string = "/"

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

      Returns Path

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