react-solid-flow
Version:
[SolidJS](https://www.solidjs.com/docs/latest/api#control-flow)-inspired basic control-flow components and everyday async state hook library for [React](https://reactjs.org/)
13 lines (12 loc) • 392 B
TypeScript
import { ReactElement } from "react";
import type { ReactNode } from "react";
interface SwitchProps {
children: ReactNode;
/** content to display if no Match predicate is truthy */
fallback?: ReactNode;
}
/** Component to display one exclusive condition out of many,
* using Match component
*/
export declare function Switch(props: SwitchProps): ReactElement | null;
export {};