React-Window is a React library by Brian Vaughn for rendering a massive amount of items in a list (or a grid but I will use “list” to keep the sentences simple as principle is the same for both) efficiently.
By rendering only visible items
But the problem is that when you click on an item in a list, you can’t scroll up/down using keys.
such as Page Up/Down, Arrow Up/Down, Home, or End keys.
Let’s see how we can support scrolling in react-window with Page Up/Down.