In React Router v6, how can I go back to the previous page using <Link> instead of useNavigate().
// Instead of this...
<button onClick={() => navigate(-1)}>
// ...it needs to be this:
const previousPage = ???
<Link to={previousPage}>Go back</Link>
This behavior change allows me to use <a href="xxxx"> instead of a <button>, which is the most accessible way of creating links between pages. (More about button vs links)
Update: I've created a codesandbox to help you find the solution.
Update 2: Based on the answers and some research, I created a GitHub issue to react-router