React.js is currently one of the most popular JavaScript libraries for front-end developers. React really changed the way we build Single-page applications (SPAs). One of its greatest features is hooks that introduced in React 16.8 and that new feat...

Markdown supported · ⌘↵ to post
Oh nice, I haven't used most of these hooks yet. But I will definitely check it out.
Thanks for sharing, Brayan Arrieta Alfaro.
Mohamad Ghaith Alzin
Brayan Arrieta Alfaro Thank you for this very helpful Hooks example usage but I want to point out that there is a little warning that I got with this line of code at the useFetch Hook section,
So if you take a look, it seems the useEffect hook depends also on the error value besides the url and options!