@yookue/react-condition
Version:
Render components conditionally for react
11 lines (10 loc) • 312 B
TypeScript
import React from 'react';
export type IfProps = React.PropsWithChildren<{
condition: boolean | number | string | undefined | null;
validation?: boolean;
}>;
export type IfThenProps = IfProps & {
render?: () => React.ReactNode;
};
export type IfElseProps = IfThenProps;
export declare const If: any;