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