Next.js · Junior · Question 60 of 75

What does the replace prop do on <Link>?

<Link href="/step-2" replace>Next</Link>

Explanation

With replace, the browser's Back button skips the replaced page - handy for wizards or tab filters that shouldn't fill the history.

Further reading

Problem with a question

Next.js · Junior · question 60

Test yourself

Take the Next.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz