Every custom hook generally returns a state, it may or may not have a useEffect inside it. Let us name our custom hook as useFetch. According to the Rules of Hook every custom hook should have use as a keyword in front of it to recognize it as a hook.
Topics covered in this video:
1. Architectural pattern that is used for creating custom hook with fetch().
2. Implementation of custom hook.
3. Usage in the actual component.
#react#fetch
Support
https://www.buymeacoffee.com/sh3rl0ck
SUBSCRIBE for more ► https://bit.ly/32cvHLH