DEV Community

Discussion on: 5 Ways to Fetch API Data in React.js

Collapse
 
zahab profile image
Zahab Kakar • Edited

Hey there, thank you so much, for your great explanation. Yes but when some developers see two different ways of mentioning them, which looks complicated and they will confuse, that's y I have mentioned as too different points(If we explore each more in details, they still have some differences).
Yes we should use useState, but the aim of this article was not on fetching and using useState, I was trying to explain how to get data from API, by the way thanks for mentioning these points, i will consider them on my next articles and explain more in details. :)