i'm trying to learn routing in Next.JS but I can't manage to get the query object.
File path: ./src/pages/[test]/index.tsx
import { useRouter } from 'next/router';
export default function Test() {
const router = useRouter();
console.log(router.query);
return (
<div>
<h1>Test</h1>
</div>
)
}
console.log
just prints {}