DEV Community

loading...

Discussion on: React custom hook to fetch data

Collapse
vnankov profile image
Valentin Nankov

Very nice explanation!
I have just one question though, can we use this custom hook with some authentication token or something, probably the one that should be included in the dependency array? Can you give us an example? Thank you!