Mohammad Faisal
Mar 30, 2021

--

you are correct. I didn’t need to do this inside this example as it’s offline.
But, in real-life scenarios, you will have to call some remote data source to fetch data. In those cases, this useEffect will help to make that call.

--

--