t

router.browser

RoutingSourceComponent

trait RoutingSourceComponent[Info <: AnyRef, To] extends AnyRef

Subscribe to a RoutingSource and establish a react routing context. Unsubscribe on unmount. Children can be anything but look at ShowIfMatch or an inside component in any subclasses e.g. Route in ReactionRoutingDOMComponent.

Self Type
RoutingSourceComponent[Info, To]
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RoutingSourceComponent
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait Props extends Object
    Annotations
    @JSType()
  2. abstract type RouterInfo <: RouterInfoLike
  3. trait RouterInfoLike extends AnyRef
  4. type State = Option[Info]

Abstract Value Members

  1. abstract def makeContextValue(info: Option[Info]): RouterInfo

Concrete Value Members

  1. val Name: String

    Override to change the name.

  2. val RouterContext: ReactContext[RouterInfo]
  3. def apply(children_: ReactNode): ReactNode
  4. def render: (Props) => ReactNode
  5. object ShowIfMatch

    If the predicate is true, show the child component and optionally alter the context the child sees to reflect the match e.g.

    If the predicate is true, show the child component and optionally alter the context the child sees to reflect the match e.g. strip off the front segment of the URL.