DEV Community

loading...

Discussion on: React useEffect cleanup: How and when to use it

Collapse
krankj profile image
Sudarshan K J

In the last axios example, shouldn't the method call be fetchUsers() and not fetchData()?

Collapse
radoncreep profile image
radoncreep

yes. it should be fetchUsers()