setemiojo
@Oluwasetemi
Public Repls
Community
1
understanding-usefetchIn this repl, I explained the power of a custom hook that use the power of combination with other hooks like useRef, useReducer to create a custom hook to fetch data from a URL and return an object of error, loading or data. For more complex examples check useSWR, @tanstack/react-query and RTK from redux toolkit.
6
1