diff --git a/packages/core/src/nodes.rs b/packages/core/src/nodes.rs index 807509f0c..0d5d2ae5d 100644 --- a/packages/core/src/nodes.rs +++ b/packages/core/src/nodes.rs @@ -382,7 +382,7 @@ impl VComponent { /// fn(Scope) -> Element; /// async fn(Scope>) -> Element; /// ``` - pub fn new

(&self, component: fn(P) -> Element, props: P, fn_name: &'static str) -> Self + pub fn new

(component: fn(P) -> Element, props: P, fn_name: &'static str) -> Self where // The properties must be valid until the next bump frame P: Properties,