UNPKG

663 BTypeScriptView Raw
1import { ClassicComponent, ClassicComponentClass, ClassType, ComponentClass, ComponentState, FunctionComponent, ReactHTML, ReactNode, ReactSVG } from 'react';
2/**
3 * ---
4 * category: utilities/react
5 * ---
6 * Evaluate a provided value to create a renderable React element.
7 * @module callRenderProp
8 * @param value
9 * @param props
10 */
11declare function callRenderProp<P>(value: keyof ReactHTML | keyof ReactSVG | FunctionComponent<P> | ClassType<P, ClassicComponent<P, ComponentState>, ClassicComponentClass<P>> | ComponentClass<P> | ReactNode, props?: P): any;
12export default callRenderProp;
13export { callRenderProp };
14//# sourceMappingURL=callRenderProp.d.ts.map
\No newline at end of file