Create a Paginate Component Using Render Props in React

InstructorErik Aybar

Share this video with your friends

Send Tweet

In this video, we'll walk through accomplishing the common UI task of client-side pagination in React. We'll implement a render prop component to encapsulate the chunking/windowing logic of a large array of items that will provide our render prop function with the correct items for the current page. Our Paginate render prop component will not have any opinion or knowledge relating to UI and will only be responsible for providing our render prop function with the relevant data that it needs to render the current items along with our pagination.

Related reading from the React docs: Use Render Props for Cross-Cutting Concerns