JSFiddle - React, Tailwind, and code Playground

by Artem

HTML

new Array(this.filteredData.length - (this.state.itemsPerPage * this.state.currentPage)).fill('null').map((_, index) => (
              <li>{index} - {this.filteredData[index * (1 + this.state.currentPage)].text}</li>
            ))