Hook was part of react-router 5 which has long been replaced by v6. Would be nice perhaps to make use of ```useNavigate()``` in the examples :)