Skip to content
    Oluwasetemi

    setemiojo

    @Oluwasetemi
    Oluwasetemi
    Oluwasetemi
    published a Repl
    2 years ago
    1
    understanding-usefetch
    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.
    Copyright © 2024 Replit, Inc. All rights reserved.
    • twitter
    • tiktok
    • instagram
    • facebook

    Replit

    Programming languages

    • Python
    • JavaScript
    • TypeScript
    • Node.js
    • Nix
    • HTML, CSS, JS
    • C++
    • Golang