Redirecting alone is done via the Navigate
component with the replace
prop specified.
<Navigate replace to="/" />
If you want to replicate RRDv5’s Redirect
component redirecting from a path then you need to combine with a Route
.
<Route path="/somePath" element={<Navigate replace to="/" />} />