Implement Infinite Scroll in React
Implement infinite scrolling in React — as the user reaches the bottom of a list the next page of data is automatically fetched and appended. This is the standard pattern for news feeds, product listings and social media timelines. Must show a loading spinner during fetch and handle end-of-data gracefully.