Closed xTrig closed 2 years ago
`pages/jobs.js (25:28) @ Jobs
23 | const indexOfLastPost = currentPage * postsPerPage; 24 | const indexOfFirstPost = indexOfLastPost - postsPerPage;
25 | const currentPosts = posts.slice(indexOfFirstPost, indexOfLastPost); | ^ 26 | 27 | const paginate = (pageNumber) => setCurrentPage(pageNumber); 28 | `
`pages/jobs.js (25:28) @ Jobs
23 | const indexOfLastPost = currentPage * postsPerPage; 24 | const indexOfFirstPost = indexOfLastPost - postsPerPage;