reactjs-compose
Version:
Compose components following Facebook's composition best practices
11 lines (10 loc) • 307 B
TypeScript
import React from 'react';
declare type ComponentType = React.ElementType | [React.ElementType, {
[name: string]: any;
}];
interface Props {
components: Array<ComponentType>;
children?: any;
}
declare function Compose({ components, children }: Props): React.ElementType;
export default Compose;