Returns a valid href for the given to value that may be used as
the value of an attribute.
The destination URL
OptionalencodeNavigates n entries backward/forward in the history stack relative to the
current index. For example, a "back" navigation would use go(-1).
The delta in the stack index
Optionalstate: anyOptionalopts: NavigateOptionsOptionalstate: anyOptionalopts: NavigateOptions
A Navigator is a "location changer"; it's how you get to different locations.
Every history instance conforms to the Navigator interface, but the distinction is useful primarily when it comes to the low-level
<Router>API where both the location and a navigator must be provided separately in order to avoid "tearing" that may occur in a suspense-enabled app if the action and/or location were to be read directly from the history instance.