Pagination in React
page + pageSize, slice(start, start + size). Next increments page. Disable Next on the last page. Server pagination: pass page to the API instead of slicing a giant client array. react-paginate is a UI helper — you still own the data window.
Pagination in React — page 0 → a, b. Next → c, d. slice does the window.
Exam tip
slice or server page param.