Запитання 3
Why can you not use an async function directly as the callback inside useEffect?
Варіанти відповідей
Because async functions return a Promise, which is ignored by useEffect and can cause issues with cleanup.
Because React does not support Promises in any lifecycle hooks.
Because useEffect expects a synchronous function with no side effects.
Because async functions run on a different thread outside React's control.