How do you programmatically navigate to a different route with <BrowserRouter> in React Router v6?
In React Router v6, you programmatically navigate by using the 'useNavigate' hook which returns a navigate function. The previous approach using the 'history' object was used in React Router v5 and earlier versions.