Describe the implementation of Scroller.
For the implementation of Scroller, we'll be taking advantage of hooks. Hooks are a fairly new addition to React, introduced in v16.8, that provide an excellent way of sharing logic between functional components. One of the downsides of using hooks is that they cannot be used in components defined using
class, or class components (although functional components are slowly becoming the popular choice in the React community).