Infinite Scroll

Build a feed in React that loads more posts from an API as the user scrolls near the bottom, with loading, error and end states that work for keyboard and screen reader users.

Asked in Meta frontend interviews