React Pattern
Page window
Slice a local collection using a zero-based page index and positive page size. Server pagination may use different contracts.
Formal Syntax & Structure
react syntaxreact
items.slice(page * size, (page + 1) * size)Working Example
Example Snippetreact
items.slice(0, 2)