Using replace avoids adding a blocked protected page as a new history entry, which can make the back button behavior cleaner.
Question 4 of 20 in Protected Routes Quiz