Next.js · Junior · Question 59 of 75
When should you use router.push() instead of <Link>?
- ✓Correct answer: For navigation that happens in code, e.g. after a form saves successfully
- 2Always -
<Link>is deprecated - 3For external links to other sites
Explanation
<Link> renders a real <a>, supports prefetching and opening in a new tab. Use useRouter only when there is no clickable link to render.