react-router-dom
Advanced tools
Changelog
v6.2.2
Date: 2022-02-28
Full Changelog: v6.2.1...v6.2.2
Changelog
v6.2.1
Date: 2021-12-17
history
dependency to 5.2.0
.Full Changelog: v6.2.0...v6.2.1
Changelog
v6.2.0
Date: 2021-12-17
RouteProps
element
type, which should be a ReactNode
(#8473)useOutlet
for top-level routes (#8483)Full Changelog: v6.1.1...v6.2.0
Changelog
v6.1.1
Date: 2021-12-11
HistoryRouter
as unstable_HistoryRouter
, as this API will likely need to change before a new major release.Full Changelog: v6.1.0...v6.1.1
Changelog
v6.1.0
Date: 2021-12-10
<Outlet>
can now receive a context
prop. This value is passed to child routes and is accessible via the new useOutletContext
hook. See the API docs for details. (#8461)<NavLink>
can now receive a child function for access to its props. (#8164)useMatch
and matchPath
. For example, when you call useMatch("foo/:bar/:baz")
, the path is parsed and the return type will be PathMatch<"bar" | "baz">
. (#8030)Full Changelog: v6.0.2...v6.1.0