The example shows how to maintain scroll position when loading new content above the old one. Video with explanation How to run $ npm i $ npm start Repo is base on Create React App