Use can fetch data with the useEffect or useState hook. Find a detailed example at https://rapidapi.com/blog/react-hooks-fetch-data-api/