Next.js · Middle · Question 56 of 75

What does redirect() in a Server Action do for a form submitted before JavaScript loaded?

Explanation

When JavaScript is available, redirect performs a client-side navigation. The 303 status keeps progressive enhancement working without re-posting the form.

Further reading

Problem with a question

Next.js · Middle · question 56

Test yourself

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

Take this quiz