Skip to content

Commit

Permalink
Update migration guide
Browse files Browse the repository at this point in the history
  • Loading branch information
hamza1311 committed Jul 20, 2022
1 parent 7b65f3c commit a15b5db
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions website/docs/migration-guides/yew/from-0_19_0-to-0_20_0.mdx
Expand Up @@ -49,3 +49,12 @@ The reducer function can see all previous changes at the time they are run.
`start_app*` has been replaced by `yew::Renderer`.

You need to enable feature `render` to use `yew::Renderer`.

## `ref` prop for Components

Components no longer have a `ref` prop. Trying to add a node ref to a component
will result in a compile error

Previously node ref passed to a component was bound to the first element rendered by it.
If this behavior is still desired, it is recommended to use add a `r#ref` field to the
component's properties and bind it manually

0 comments on commit a15b5db

Please sign in to comment.