浏览代码

fix VComponent::new

Evan Almloff 1 年之前
父节点
当前提交
6630a81b0b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/core/src/nodes.rs

+ 1 - 1
packages/core/src/nodes.rs

@@ -382,7 +382,7 @@ impl VComponent {
     /// fn(Scope<Props>) -> Element;
     /// async fn(Scope<Props<'_>>) -> Element;
     /// ```
-    pub fn new<P>(&self, component: fn(P) -> Element, props: P, fn_name: &'static str) -> Self
+    pub fn new<P>(component: fn(P) -> Element, props: P, fn_name: &'static str) -> Self
     where
         // The properties must be valid until the next bump frame
         P: Properties,