Argument of type '() => Promise<AxiosResponse<any>>' is not assignable to parameter of type 'EffectCallback'. code example
Example: Type 'Promise' is not assignable to type 'void | (() => void)'.
useEffect(() => {
const genRandomKey = async () => {
console.log(await ecc.randomKey())
};
genRandomKey();
}, []);