mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
update migration docs to be more explicit (#3028)
* update migration docs to be more explicit * try to appease prettier * Update website/versioned_docs/version-0.20/migration-guides/yew/from-0_19_0-to-0_20_0.mdx Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com> Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>
This commit is contained in:
parent
0ad939bd34
commit
8b2a1c199a
@ -50,6 +50,14 @@ The reducer function can see all previous changes at the time they are run.
|
|||||||
|
|
||||||
You need to enable feature `csr` to use `yew::Renderer`.
|
You need to enable feature `csr` to use `yew::Renderer`.
|
||||||
|
|
||||||
|
For example, to use client side rendering to render a typical app component:
|
||||||
|
|
||||||
|
```rust ,ignore
|
||||||
|
yew::Renderer::<App>::new().render();
|
||||||
|
```
|
||||||
|
|
||||||
|
For more options, see [the docs](https://docs.rs/yew/0.20/yew/struct.Renderer.html).
|
||||||
|
|
||||||
## `ref` prop for Components
|
## `ref` prop for Components
|
||||||
|
|
||||||
Components no longer have a `ref` prop. Trying to add a node ref to a component
|
Components no longer have a `ref` prop. Trying to add a node ref to a component
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user