Client Side Fetching
Explanation
Client Side Fetching is done using a combination of the useEffect and useState hooks
The browser is in charge of handling the request. This can take longer for data to load. Client-side fetching happens after the page is loaded in the browser, often used for data that does not need to be available at the initial render.
Main Purpose
Use for subsequent client-side data fetching or polling after the page loads.
Console.log and Debugging
Here you will console.log statements since the browser is doing the request
Testing with API data
When using client-side fetching, it is common to encounter a brief delay before the data is available. During this time, displaying a loading indicator can improve user experience by providing feedback that data is being fetched.
List of Users