Packages

  • package root
    Definition Classes
    root
  • package react_router5
    Definition Classes
    root
  • package dom
    Definition Classes
    react_router5
  • object Route

    Route, most commonly used router component.

    Route, most commonly used router component. Watch out for which apply method you use as rendering with path, children or exact=true does different thnigs. Rendering with a "component" specified as the prop is not supported. Rendering with children means that the child is always rendered regardless of whether there is a match or not.

    Type parameter S stands for "state" which is state you can add to the history stack per push. P is a js object for query parameters, hence, each property should have a string value. Using the children props always renders regardless of path match. Typically, use the render prop.

    Definition Classes
    dom
  • JS
  • Props

trait Props[S, P] extends Object with RouteProps[S]

Annotations
@JSType()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Props
  2. RouteProps
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. val exact: UndefOr[Boolean]
    Definition Classes
    RouteProps
    Annotations
    @JSOptional()
  2. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  3. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  4. val location: UndefOr[Location[S]]
    Definition Classes
    RouteProps
    Annotations
    @JSOptional()
  5. val path: UndefOr[|[String, Array[String]]]
    Definition Classes
    RouteProps
    Annotations
    @JSOptional()
  6. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  7. val render: UndefOr[Function1[RouteComponentProps[S, P], ReactNode]]

    Only renders if route matched.

    Only renders if route matched. children prop always renders regardless of match.

    Annotations
    @JSOptional()
  8. val sensitive: UndefOr[Boolean]
    Definition Classes
    RouteProps
    Annotations
    @JSOptional()
  9. val strict: UndefOr[Boolean]
    Definition Classes
    RouteProps
    Annotations
    @JSOptional()
  10. def toLocaleString(): String
    Definition Classes
    Object
  11. def valueOf(): Any
    Definition Classes
    Object