Запитання 12
How do you handle asynchronous data loading in React applications?
Варіанти відповідей
By using dedicated data-fetching libraries like TanStack Query, SWR, or RTK Query, or React 19's use() hook with Suspense and error boundaries rather than manual useEffect+fetch.
By fetching data synchronously inside render methods for simplicity.
By avoiding asynchronous loading and hardcoding all data.
By using jQuery AJAX calls exclusively within React components.