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
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- RoutingSourceComponent
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- trait Props extends Object
- Annotations
- @JSType()
- abstract type RouterInfo <: RouterInfoLike
- trait RouterInfoLike extends AnyRef
- type State = Option[Info]
Abstract Value Members
- abstract def makeContextValue(info: Option[Info]): RouterInfo
Concrete Value Members
- val Name: String
Override to change the name.
- val RouterContext: ReactContext[RouterInfo]
- def apply(children_: ReactNode): ReactNode
- def render: (Props) => ReactNode
- 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.