remove static bound from props
This commit is contained in:
1 parent
a2c7b69a1d
commit
998f9e0d00
1 file changed
+1
-1
@@ -417,7 +417,7 @@ impl<'src> ScopeState {
|
|||||||
/// fn(Scope<Props>) -> Element;
|
/// fn(Scope<Props>) -> Element;
|
||||||
/// async fn(Scope<Props<'_>>) -> Element;
|
/// async fn(Scope<Props<'_>>) -> Element;
|
||||||
/// ```
|
/// ```
|
||||||
pub fn component<P: 'static>(
|
pub fn component<P>(
|
||||||
&'src self,
|
&'src self,
|
||||||
component: fn(Scope<'src, P>) -> Element<'src>,
|
component: fn(Scope<'src, P>) -> Element<'src>,
|
||||||
props: P,
|
props: P,
|
||||||
|
|||||||
Reference in new issue
Block a user