React Hook будет установлен
const useComponentWillMount = (func: (params?: any) => any) => useMemo(func, []);
TindyC
const useComponentWillMount = (func: (params?: any) => any) => useMemo(func, []);
useMemo(() => { }
}, []);