score:0

Accepted answer
const pages: any[number] = Math.ceil(totalItems / pageSize); 

score:0

<button disabled={currentPage === pages ? true : false}> 
 
 </button>

Related Query

More Query from same tag