pub fn as_child_of_current_scope<T, U>( f: impl Fn(T) -> U + 'static, ) -> impl Fn(T) -> (U, Scope)where T: 'static,
Wrap the closure so that whenever the closure runs, it will be under a child Scope of the current Scope