DEV Community

Discussion on: Hooked on React hooks

Collapse
 
pigozzifr profile image
Francesco Pigozzi

Great article!

Your explainations are clear and accessible.

I probably found a typo in your custom hook useFetchData inside the useEffect deps. You wrote [props.id] but maybe you meant to write [url] or something like this.

Cheers! 🦄

Collapse
 
markusclaus profile image
Markus Claus

You are correct. That was a copy and paste error. I missed that.

Thank you 😊

Collapse
 
httpjunkie profile image
Eric Bishard

Best kind of errors! IMHO..