All these would have to be rewritten in every component we need to fetch data.
Moreover, we could use a flag, to indicate that fetching is in progress.
Check out the v4 beta docs here:.
While useEffect fetches the data irrespective of the modified data and reloads the page.
Those are pretty self-explanatory.