remove Rc from the Component type alias

This commit is contained in:
Evan Almloff committed 2024-01-30 12:29:47 -06:00
1 parent 11555e4a51
commit aa03a6316a
2 files changed
+1 -8

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ pub(crate) mod innerlude {
/// Example {}
/// )
/// ```
pub type Component<P = ()> = std::rc::Rc<dyn Fn(P) -> Element>;
pub type Component<P = ()> = fn(P) -> Element;
}
pub use crate::innerlude::{