01-Pagination Intro
Last updated
Last updated
Pagination is the process of separating print or digital content into separate pages. For print documents and some online content, pagination refers to the automated process of putting in consecutive numbers to identify the sequential order of pages.
A common example of pagination can be found in everyday email. Take, for instance, a random Gmail account:
Of course, to have 3,000 plus emails is crazy, but it would be horrible to have all of those displayed in a list of 3000 items. Pagination helps us with that. Instead, we just show the first 50 results.
In our NYT app, we are already only displaying the first 10 results from the results array. We just need to be able to add the navigation between the results. Let's do that next.