p
react_router6
package react_router6
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- react_router6
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- type Hash = String
- trait Hooks extends Object
- Annotations
- @JSType() @native()
- trait Location[+S] extends Object
A simplified but overlapping version from the DOM lib per the js package 'history'
A simplified but overlapping version from the DOM lib per the js package 'history'
- Annotations
- @JSType() @native()
- implicit class Location2LocationDescriptor[S] extends AnyRef
LocationDescriptor is Location but all vars are optional.
- trait LocationInit[+S] extends Object with NavigateProps
Like Location but everything is optional.
Like Location but everything is optional.
- Annotations
- @JSType()
- type LocationKey = String
- trait NavigateAction[S] extends Object
- Annotations
- @JSType() @native()
- trait NavigateOptions[S] extends Object
- Annotations
- @JSType()
- trait NavigateProps extends Object
- Annotations
- @JSType()
- type Pathname = String
- type RouteSpec = Array[|[RouteSpecElement, RouteSpecRouteTo]]
- trait RouteSpecElement extends Object
Very similar to what you provide to the Route component.
Very similar to what you provide to the Route component.
- Annotations
- @JSType()
- trait RouteSpecRouteTo extends Object
- Annotations
- @JSType()
- type Search = String
- trait UnblockingTx extends Object
- Annotations
- @JSType() @native()
- trait Utils extends Object
- Annotations
- @JSType() @native()
Value Members
- def useBlocker(blocker: Function1[UnblockingTx, Unit], when: UndefOr[Boolean] = js.undefined): Unit
- def useHref[S](to: |[LocationInit[S], String]): String
- def useLocation[S](): Location[S]
- def useMatch[S](to: |[LocationInit[S], String]): Boolean
- def useNavigate[S](): NavigateAction[S]
- def useOutlet(): ReactNode
- def useParams[P](): P
- def useResolvedLocation[S](to: |[LocationInit[S], String]): Location[S]
- def useRoutes(routes: RouteSpec, basename: UndefOr[String] = js.undefined, caseSensitive: UndefOr[Boolean] = js.undefined): ReactNode
- object LocationInit
- object MemoryRouter
- object Navigate
- object Outlet
- object Route
- object Router
- object Routes
- object module extends Object with Hooks with Utils
- Annotations
- @native() @JSImport("react-router", JSImport.Namespace)