DEV Community

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

Collapse
 
padarcsaba profile image
Csaba Padar

In the last eample (Extra: Cancel an Axios request)

There is a typo: Before the cleanup function, it should be "fetchUsers()" instead "fetchData()"

Good article, tho! Thanks!