mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-10 06:34:20 +00:00
fix VComponent::new
This commit is contained in:
parent
9ef4f465a6
commit
6630a81b0b
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue