The history.block() method is used to block navigation to any route.
Question 13 of 20 in useHistory Quiz