const [currentPage, setCurrentPage] = useState(1); const handleScroll = () => { const gridContainer = document.querySelector(".grid&