DEV Community

Discussion on: 2020 React Styleguide

Collapse
 
lyrod profile image
Lyrod

You're useEffect async will not work. Because useEffect need a function to run when the component unmount. You need to have a IIFE or create an async function and call it