13 lines
373 B
TypeScript
13 lines
373 B
TypeScript
/**
|
|
* An interface representing a component that will not output any DOM, will just render its children and
|
|
* pass through items to modify the children.
|
|
*
|
|
* {@docCategory IRenderComponent}
|
|
*/
|
|
export interface IRenderComponent<TProps> {
|
|
/**
|
|
* JSX.Element to return in this component's render() function.
|
|
*/
|
|
children: (props: TProps) => JSX.Element;
|
|
}
|