useMount function
void
useMount(
- void effect()
Implementation
void useMount(void Function() effect) {
useEffect(
() {
effect();
return () => {};
},
[],
);
}
void useMount(void Function() effect) {
useEffect(
() {
effect();
return () => {};
},
[],
);
}