fix VComponent::new

This commit is contained in:
Evan Almloff committed 2024-01-07 09:14:44 -06:00
1 parent 9ef4f465a6
commit 6630a81b0b
1 file changed
+1 -1
+1 -1
View File
@@ -382,7 +382,7 @@ impl VComponent {
/// fn(Scope<Props>) -> Element; /// fn(Scope<Props>) -> Element;
/// async 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 where
// The properties must be valid until the next bump frame // The properties must be valid until the next bump frame
P: Properties, P: Properties,