UNPKG

react-compose-components

Version:

A utility to flatten component pyramids in React.

14 lines (13 loc) 361 B
/// <reference types="react" /> import { ComponentType } from 'react'; export declare type InputType = string | ComponentType | [ComponentType, { [name: string]: any; }] | [string, { [name: string]: any; }]; export interface Props { components: InputType[]; children?: any; } declare const Compose: ComponentType<Props>; export default Compose;