pub fn use_spawn<F, R>(hooks: &mut Hooks<'_>, func: F)where F: FnOnce(&mut World) -> R + Sync + Send + 'static, R: FnOnce(&mut World) + Sync + Send + 'static,
Execute a function when the Element is mounted/rendered for the first time.
The function should return another function; that function will be called when the Element is unmounted.