New version of react-router-dom (v6.0.0) doesn’t identify "Redirect". What is the alternative for it?
>Solution :
Redirect alone is done via the Navigate component with the replace prop specified.
<Navigate replace to="/" />
If you want to replicate redirecting from a path then you need to combine with a Route.
<Route path="/somePath" element={<Navigate replace to="/" />} />