Infinite Scroll
Implement infinite scrolling using either IntersectionObserver or a scroll event listener. The API at /api/v1/posts?page=1&limit=10 returns paginated data with a hasMore flag. Load the next page automatically when the user scrolls near the bottom.
Showing 0 of ... postsPage 1 / ...
Right now, posts load via the "Load More" button. Your task is to replace that with automatic loading when the user scrolls to the #scroll-sentinel element. Use IntersectionObserver for the cleanest approach.