Reactjs – how to query items from useRouter() hock in case i'm using nextjs with App Router approach
This was the way to do it using Pages Router import { useRouter } from "next/router"; import React from "react"; function ShowroomListings({}) { const router = useRouter(); const { listingId } = router.query as { listingId: string }; return <div>This…