@@ -20,7 +20,7 @@ fn main() {
2020 dioxus:: desktop:: launch ( App , |c| c) ;
2121}
2222
23- fn App ( ( cx, props) : Component < ( ) > ) -> Element {
23+ fn App ( ( cx, props) : Scope < ( ) > ) -> Element {
2424 let text: & mut Vec < String > = cx. use_hook ( |_| vec ! [ String :: from( "abc=def" ) ] , |f| f, |_| { } ) ;
2525
2626 let first = text. get_mut ( 0 ) . unwrap ( ) ;
@@ -43,7 +43,7 @@ impl<'a> Drop for C1Props<'a> {
4343 fn drop ( & mut self ) { }
4444}
4545
46- fn Child1 < ' a > ( ( cx, props) : Component < ' a , C1Props > ) -> Element < ' a > {
46+ fn Child1 < ' a > ( ( cx, props) : Scope < ' a , C1Props > ) -> Element < ' a > {
4747 let ( left, right) = props. text . split_once ( "=" ) . unwrap ( ) ;
4848
4949 cx. render ( rsx ! {
@@ -59,7 +59,7 @@ struct C2Props<'a> {
5959 text : & ' a str ,
6060}
6161
62- fn Child2 < ' a > ( ( cx, props) : Component < ' a , C2Props > ) -> Element < ' a > {
62+ fn Child2 < ' a > ( ( cx, props) : Scope < ' a , C2Props > ) -> Element < ' a > {
6363 cx. render ( rsx ! {
6464 Child3 {
6565 text: props. text
@@ -72,7 +72,7 @@ struct C3Props<'a> {
7272 text : & ' a str ,
7373}
7474
75- fn Child3 < ' a > ( ( cx, props) : Component < ' a , C3Props > ) -> Element < ' a > {
75+ fn Child3 < ' a > ( ( cx, props) : Scope < ' a , C3Props > ) -> Element < ' a > {
7676 cx. render ( rsx ! {
7777 div { "{props.text}" }
7878 } )
0 commit comments