Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Redirect replacement in react

<Redirect to="/" />
// has been replaced with
<Navigate replace to="/" />

<Route path="/somePath" element={<Navigate replace to="/" />} />
 
PREVIOUS NEXT
Tagged: #Redirect #replacement #react
ADD COMMENT
Topic
Name
8+2 =