Represents a switch component that renders different elements based on the current location.

  • Parameters

    • SwitchProps: ISwitchProps

      The props for the Switch component.

    Returns Element

    The Switch component.

Methods

  • Parameters

    • fn: ((data: ISwitchResult) => void)
        • (data): void
        • Parameters

          • data: ISwitchResult

          Returns void

    Returns (() => void)

      • (): void
      • Returns void

  • Returns Promise<ISwitchResult>