An Effect function must not return anything besides a function, useEffect, which is used for clean-up. It looks like you wrote useEffect(async () => ...) or returned a Promise. Instead, you may write an async function separately and then call it from inside the effect: 解決【React/useEffect】Uncaught TypeError: destroy is not a function 2019年2月8日 kenjimorita 解決【React/useEffect】Uncaught TypeError: destroy is not a function: see: https://daveceddia.com/useeffect-hook-examples/ (Visited 1 times, 1 visits today)Tweet