I have a dynamic route in pages/user/[id].jsx my [id].jsx contains console.log(useRouter().query.id); if I go to url/user/5
pages/user/[id].jsx
[id].jsx
console.log(useRouter().query.id);
url/user/5