useImperativeHandle<T> function
Implementation
useImperativeHandle<T>(Ref<T> ref, T Function() create) {
useEffect(() {
ref.value = create();
return () => ref.value = null;
}, [ref]);
}
useImperativeHandle<T>(Ref<T> ref, T Function() create) {
useEffect(() {
ref.value = create();
return () => ref.value = null;
}, [ref]);
}