- Switch(SwitchProps): Element
Parameters
- SwitchProps: ISwitchProps
Returns Element
The Switch component.
Methods
listen
- listen(fn): (() => void)
Parameters
- fn: ((data: ISwitchResult) => void)
Returns (() => void)
waitForNavigate
- waitForNavigate(): Promise<ISwitchResult>
Returns Promise<ISwitchResult>
Represents a switch component that renders different elements based on the current location.