redirect
react-router

redirect

redirect(url, init): Response

A redirect response. Sets the status code and the Location header. Defaults to "302 Found".

Parameters

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