You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/ROUTER.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,10 +123,10 @@ Each route can be associated with an action. The following actions are available
123
123
124
124
| DSL | Args | Description |
125
125
|-----|------|-------------|
126
-
|`render`|`ReactElement`| Render something. |
127
-
|`renderR`|`RouterCtl => ReactElement`| Render something using a [`RouterCtl`](#routerctl). |
128
-
|`dynRender`|`Page => ReactElement`| Render something using the current page.<br>**Dynamic routes only.*|
129
-
|`dynRenderR`|`(Page, RouterCtl) => ReactElement`| Render something using the current page, and a [`RouterCtl`](#routerctl).<br>**Dynamic routes only.*|
126
+
|`render`|`VdomElement`| Render something. |
127
+
|`renderR`|`RouterCtl => VdomElement`| Render something using a [`RouterCtl`](#routerctl). |
128
+
|`dynRender`|`Page => VdomElement`| Render something using the current page.<br>**Dynamic routes only.*|
129
+
|`dynRenderR`|`(Page, RouterCtl) => VdomElement`| Render something using the current page, and a [`RouterCtl`](#routerctl).<br>**Dynamic routes only.*|
130
130
|`redirectToPage`|`(Page)`<br>`(implicit Redirect.Method)`| Redirect to a page. |
131
131
|`redirectToPath`| `(Path | String)`<br>`(implicit Redirect.Method)` | Redirect to a path (a URL suffix proceding the `BaseUrl`). |
132
132
@@ -256,7 +256,7 @@ Example: This creates a route in the format of `item/<id>`.
Once you have a `RouterConfig`, you can call `.renderWith` on it to supply your own render function that will be invoked each time a route is rendered. It takes a function in the shape: `(RouterCtl[Page], Resolution[Page]) => ReactElement` where a `Resolution` is:
520
+
Once you have a `RouterConfig`, you can call `.renderWith` on it to supply your own render function that will be invoked each time a route is rendered. It takes a function in the shape: `(RouterCtl[Page], Resolution[Page]) => VdomElement` where a `Resolution` is:
521
521
522
522
```scala
523
523
/**
@@ -526,7 +526,7 @@ Once you have a `RouterConfig`, you can call `.renderWith` on it to supply your
526
526
* @parampage Data representation (or command) of what will be drawn.
527
527
* @paramrender The render function provided by the rules and logic in [[RouterConfig]].
0 commit comments