My Logo
Custom Hook - Fetch
001

Creating my own React Hook to Fetch data from an API.

Using React, I created a custom hook specifically for handling fetch requests from the JSON Placeholder API.

Loading...

Custom Hook - Fetch

About this project

  • This hook implements a basic Fetch request to pull data from the JSONPlaceholder API.
  • The project also includes a loading state in case the fetch is slow.
  • Concepts used

  • Custom React Hook
  • Fetch API
  • useEffect Hook
  • useCallback Hook
  • Loading States
  • Error States