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:
Shrey Sudhir 2022-12-12 00:21:41 +11:00 committed by GitHub
parent 0ad939bd34
commit 8b2a1c199a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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