I stopped using the useEffect hook to fetch data. React Query works, but is it easier?
Just like many, when I started to build React.js web apps I used the useEffect hook to fetch data because the (now old) documentation said so. A few months ago I stumbled on this article below about the useEffect hook and data fetching: Why useEffect is a bad place to make API calls The design choices react team have made in useEffect hook are still a heated debate. Some people like it and some…articles.wesionary.team