package dom
- Alphabetic
- By Inheritance
- dom
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait Action extends Any
- Annotations
- @JSType() @native()
- type Hash = String
- trait History[S] extends Object
History from package
history
.History from package
history
. Allows you control navigation via "commands"- S
State, often js.Any, Null or Nothing if you do not need state.
- Annotations
- @JSType() @native()
- type Href = String
- 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 LocationDescriptor[S] extends Object
Like Location but everything is optional.
Like Location but everything is optional.
- Annotations
- @JSType()
- type LocationKey = String
- trait Match[T] extends Object
Match object often passed to render props in the Route element.
Match object often passed to render props in the Route element.
- T
Params object. If you do not need params you can use Null, js.Any, etc.
- Annotations
- @JSType() @native()
- type Path = String
- type Pathname = String
- trait ReactRouterDOM extends Object
- Annotations
- @JSType() @native()
- trait RouteComponentProps[S, P] extends Object
P is params object.
P is params object. S is state stored in history. If you are not using either, you can use
RouteComponentProps[Null, Nothing]
.- Annotations
- @JSType() @native()
- trait RouteProps[S] extends Object
- Annotations
- @JSType()
- trait RouterContext extends Object
- Annotations
- @JSType() @native()
- type Search = String
Value Members
- object Action
- object BrowserRouter
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object HashRouter
- object Prompt
- object Redirect
- 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. - object Switch
- object hooks extends Object with ReactRouterDOM
- Annotations
- @native() @JSImport("react-router-dom", JSImport.Namespace)