Function redirect

  • Throws a Redirect instance that redirects router to a location.

    During SSR, redirects abort rendering. On the client, redirects trigger RouterProps.onReplace.

    Parameters

    Returns never