From a15b5db57353c35623fa3a9c5604c7a9efd85598 Mon Sep 17 00:00:00 2001 From: Muhammad Hamza Date: Wed, 20 Jul 2022 21:16:34 +0500 Subject: [PATCH] Update migration guide --- .../docs/migration-guides/yew/from-0_19_0-to-0_20_0.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/website/docs/migration-guides/yew/from-0_19_0-to-0_20_0.mdx b/website/docs/migration-guides/yew/from-0_19_0-to-0_20_0.mdx index 27ec305aa7a..d0473857911 100644 --- a/website/docs/migration-guides/yew/from-0_19_0-to-0_20_0.mdx +++ b/website/docs/migration-guides/yew/from-0_19_0-to-0_20_0.mdx @@ -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