Use React Query (@tanstack/react-query) to fetch user data from a mock API. Show a loading indicator while fetching, the user name on success, and an error message on failure.
Click Run to test your code