Rename to component function

This commit is contained in:
Jonathan Kelley committed 2024-01-16 15:09:44 -08:00
1 parent c94af9538b
commit 3fb7c359c2
6 files changed
+30 -21

No files matched your search

+2 -2
View File
@@ -11,7 +11,7 @@ use crate::{
},
nodes::RenderReturn,
nodes::{Template, TemplateId},
properties::ComponentFn,
properties::ComponentFunction,
runtime::{Runtime, RuntimeGuard},
scopes::ScopeId,
AttributeValue, BoxedContext, Element, Event, Mutations,
@@ -269,7 +269,7 @@ impl VirtualDom {
/// let mutations = dom.rebuild();
/// ```
pub fn new_with_props<P: Clone + 'static, M>(
root: impl ComponentFn<P, M>,
root: impl ComponentFunction<P, M>,
root_props: P,
) -> Self {
let (tx, rx) = futures_channel::mpsc::unbounded();