|
@@ -44,7 +44,6 @@ pub fn fc_to_builder<T: Properties>(_: FC<T>) -> T::Builder {
|
|
T::builder()
|
|
T::builder()
|
|
}
|
|
}
|
|
|
|
|
|
-use crate::nodebuilder::LazyNodes;
|
|
|
|
/// Create inline fragments
|
|
/// Create inline fragments
|
|
///
|
|
///
|
|
/// Fragments capture a series of children without rendering extra nodes.
|
|
/// Fragments capture a series of children without rendering extra nodes.
|
|
@@ -54,7 +53,5 @@ use crate::nodebuilder::LazyNodes;
|
|
use crate::prelude::*;
|
|
use crate::prelude::*;
|
|
#[allow(non_upper_case_globals, non_snake_case)]
|
|
#[allow(non_upper_case_globals, non_snake_case)]
|
|
pub fn Fragment<'a>(cx: Context<'a, ()>) -> VNode<'a> {
|
|
pub fn Fragment<'a>(cx: Context<'a, ()>) -> VNode<'a> {
|
|
- cx.render(LazyNodes::new(move |f| {
|
|
|
|
- f.fragment_from_iter(cx.children())
|
|
|
|
- }))
|
|
|
|
|
|
+ cx.render(LazyNodes::new(move |f| f.fragment_from_iter(cx.children())))
|
|
}
|
|
}
|