object Route
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Route
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- def always(element: ReactNode): ReactElement
Path is
*
. - def apply(path: String, element: ReactNode): ReactElement
Non-specialized version.
- def apply(props: Props): ReactElement
- def descendant(path: String, element: ReactNode): ReactElement
Appends
slash asterisk
to the path.Appends
slash asterisk
to the path. Your element should *not* useOutlet
. - def index(element: ReactNode): ReactElement
Uses
/
as the path.Uses
/
as the path. Typically used with nested route parent to render at the root of the parent. - def indexNested(element: ReactNode)(children: ReactNode*): ReactElement
Use
slash asterisk
as the path.Use
slash asterisk
as the path.element
should useOutlet
. - def nested(path: String, element: ReactNode)(children: ReactNode*): ReactElement
Children should be
Route
nodes.Children should be
Route
nodes.element
should useOutlet
to show selected child. - def nested(props: Props)(children: ReactNode*): ReactElement
Use
Route
children. - object JS extends Object with ReactJSComponent
- Annotations
- @native() @JSImport("react-router", "Route")