mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-10-23 19:33:04 +02:00
4 lines
113 B
TypeScript
4 lines
113 B
TypeScript
|
import { useEffect } from 'react';
|
||
|
|
||
|
export const UseMountEffect = (fun: Function) => useEffect(() => fun(), []);
|