replace
react-router

replace

replace(url, init): Response

A redirect response that will perform a history.replaceState instead of a history.pushState for client-side navigation redirects. Sets the status code and the Location header. Defaults to "302 Found".

Parameters

  • url: string
  • init: number | ResponseInit
Docs and examples CC 4.0