This video is available to students only

Scroller schema

Describe the implementation of Scroller.

There are many ways to consume a React library: plain JavaScript, components, hooks, render-props, and higher-order components (HOCs).

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).



This page is a preview of Creating React Libraries from Scratch

Start a new discussion. All notification go to the author.