External module "renderComponent"
Functions
isElement
-
Parameters
Returns boolean
renderComponent
- renderComponent<T>(union: TypedComponent<T>): TypedElement<T>
- renderComponent<T, T0>(union: TypedComponent<T, T0>, t0: T0): TypedElement<T>
- renderComponent<T, T0, T1>(union: TypedComponent<T, T0, T1>, t0: T0, t1: T1): TypedElement<T>
- renderComponent<T, T0, T1, T2>(union: TypedComponent<T, T0, T1, T2>, t0: T0, t1: T1, t2: T2): TypedElement<T>
- renderComponent<T, T0, T1, T2, T3>(union: TypedComponent<T, T0, T1, T2, T3>, t0: T0, t1: T1, t2: T2, t3: T3): TypedElement<T>
- renderComponent<T, T0, T1, T2, T3, T4>(union: TypedComponent<T, T0, T1, T2, T3, T4>, t0: T0, t1: T1, t2: T2, t3: T3, t4: T4): TypedElement<T>
- renderComponent<T>(union: TypedComponent<T> | undefined): TypedElement<T> | undefined
- renderComponent<T, T0>(union: TypedComponent<T, T0> | undefined, t0: T0): TypedElement<T> | undefined
- renderComponent<T, T0, T1>(union: TypedComponent<T, T0, T1> | undefined, t0: T0, t1: T1): TypedElement<T> | undefined
- renderComponent<T, T0, T1, T2>(union: TypedComponent<T, T0, T1, T2> | undefined, t0: T0, t1: T1, t2: T2): TypedElement<T> | undefined
- renderComponent<T, T0, T1, T2, T3>(union: TypedComponent<T, T0, T1, T2, T3> | undefined, t0: T0, t1: T1, t2: T2, t3: T3): TypedElement<T> | undefined
- renderComponent<T, T0, T1, T2, T3, T4>(union: TypedComponent<T, T0, T1, T2, T3, T4> | undefined, t0: T0, t1: T1, t2: T2, t3: T3, t4: T4): TypedElement<T> | undefined
- renderComponent<T>(union: TypedComponent<T> | null): TypedElement<T> | null
- renderComponent<T, T0>(union: TypedComponent<T, T0> | null, t0: T0): TypedElement<T> | null
- renderComponent<T, T0, T1>(union: TypedComponent<T, T0, T1> | null, t0: T0, t1: T1): TypedElement<T> | null
- renderComponent<T, T0, T1, T2>(union: TypedComponent<T, T0, T1, T2> | null, t0: T0, t1: T1, t2: T2): TypedElement<T> | null
- renderComponent<T, T0, T1, T2, T3>(union: TypedComponent<T, T0, T1, T2, T3> | null, t0: T0, t1: T1, t2: T2, t3: T3): TypedElement<T> | null
- renderComponent<T, T0, T1, T2, T3, T4>(union: TypedComponent<T, T0, T1, T2, T3, T4> | null, t0: T0, t1: T1, t2: T2, t3: T3, t4: T4): TypedElement<T> | null
- renderComponent<T>(union: TypedComponent<T> | undefined | null): TypedElement<T> | undefined | null
- renderComponent<T, T0>(union: TypedComponent<T, T0> | undefined | null, t0: T0): TypedElement<T> | undefined | null
- renderComponent<T, T0, T1>(union: TypedComponent<T, T0, T1> | undefined | null, t0: T0, t1: T1): TypedElement<T> | undefined | null
- renderComponent<T, T0, T1, T2>(union: TypedComponent<T, T0, T1, T2> | undefined | null, t0: T0, t1: T1, t2: T2): TypedElement<T> | undefined | null
- renderComponent<T, T0, T1, T2, T3>(union: TypedComponent<T, T0, T1, T2, T3> | undefined | null, t0: T0, t1: T1, t2: T2, t3: T3): TypedElement<T> | undefined | null
- renderComponent<T, T0, T1, T2, T3, T4>(union: TypedComponent<T, T0, T1, T2, T3, T4> | undefined | null, t0: T0, t1: T1, t2: T2, t3: T3, t4: T4): TypedElement<T> | undefined | null
- renderComponent(union: Component): Element
- renderComponent<T0>(union: Component<T0>, t0: T0): Element
- renderComponent<T0, T1>(union: Component<T0, T1>, t0: T0, t1: T1): Element
- renderComponent<T0, T1, T2>(union: Component<T0, T1, T2>, t0: T0, t1: T1, t2: T2): Element
- renderComponent<T0, T1, T2, T3>(union: Component<T0, T1, T2, T3>, t0: T0, t1: T1, t2: T2, t3: T3): Element
- renderComponent<T0, T1, T2, T3, T4>(union: Component<T0, T1, T2, T3, T4>, t0: T0, t1: T1, t2: T2, t3: T3, t4: T4): Element
- renderComponent(union: Component | undefined): Element | undefined
- renderComponent<T0>(union: Component<T0> | undefined, t0: T0): Element | undefined
- renderComponent<T0, T1>(union: Component<T0, T1> | undefined, t0: T0, t1: T1): Element | undefined
- renderComponent<T0, T1, T2>(union: Component<T0, T1, T2> | undefined, t0: T0, t1: T1, t2: T2): Element | undefined
- renderComponent<T0, T1, T2, T3>(union: Component<T0, T1, T2, T3> | undefined, t0: T0, t1: T1, t2: T2, t3: T3): Element | undefined
- renderComponent<T0, T1, T2, T3, T4>(union: Component<T0, T1, T2, T3, T4> | undefined | null, t0: T0, t1: T1, t2: T2, t3: T3, t4: T4): Element | undefined | null
- renderComponent(union: Component | null): Element | null
- renderComponent<T0>(union: Component<T0> | null, t0: T0): Element | null
- renderComponent<T0, T1>(union: Component<T0, T1> | null, t0: T0, t1: T1): Element | null
- renderComponent<T0, T1, T2>(union: Component<T0, T1, T2> | null, t0: T0, t1: T1, t2: T2): Element | null
- renderComponent<T0, T1, T2, T3>(union: Component<T0, T1, T2, T3> | null, t0: T0, t1: T1, t2: T2, t3: T3): Element | null
- renderComponent<T0, T1, T2, T3, T4>(union: Component<T0, T1, T2, T3, T4> | null, t0: T0, t1: T1, t2: T2, t3: T3, t4: T4): Element | null
- renderComponent(union: Component | undefined | null): Element | undefined | null
- renderComponent<T0>(union: Component<T0> | undefined | null, t0: T0): Element | undefined | null
- renderComponent<T0, T1>(union: Component<T0, T1> | undefined | null, t0: T0, t1: T1): Element | undefined | null
- renderComponent<T0, T1, T2>(union: Component<T0, T1, T2> | undefined | null, t0: T0, t1: T1, t2: T2): Element | undefined | null
- renderComponent<T0, T1, T2, T3>(union: Component<T0, T1, T2, T3> | undefined | null, t0: T0, t1: T1, t2: T2, t3: T3): Element | undefined | null
- renderComponent<T0, T1, T2, T3, T4>(union: Component<T0, T1, T2, T3, T4> | undefined | null, t0: T0, t1: T1, t2: T2, t3: T3, t4: T4): Element | undefined | null
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
Type parameters
Parameters
-
union: TypedComponent<T, T0, T1, T2, T3, T4>
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
t4: T4
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
union: TypedComponent<T, T0, T1, T2, T3> | undefined
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
Type parameters
Parameters
-
union: TypedComponent<T, T0, T1, T2, T3, T4> | undefined
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
t4: T4
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
union: TypedComponent<T, T0, T1, T2, T3> | null
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
Type parameters
Parameters
-
union: TypedComponent<T, T0, T1, T2, T3, T4> | null
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
t4: T4
-
Type parameters
Parameters
Returns TypedElement<T>
|
undefined
|
null
-
Type parameters
Parameters
Returns TypedElement<T>
|
undefined
|
null
-
Type parameters
Parameters
Returns TypedElement<T>
|
undefined
|
null
-
Type parameters
Parameters
-
union: TypedComponent<T, T0, T1, T2> | undefined | null
-
t0: T0
-
t1: T1
-
t2: T2
Returns TypedElement<T>
|
undefined
|
null
-
Type parameters
Parameters
-
union: TypedComponent<T, T0, T1, T2, T3> | undefined | null
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
Returns TypedElement<T>
|
undefined
|
null
-
Type parameters
Parameters
-
union: TypedComponent<T, T0, T1, T2, T3, T4> | undefined | null
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
t4: T4
Returns TypedElement<T>
|
undefined
|
null
-
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
Type parameters
Parameters
-
union: Component<T0, T1, T2>
-
t0: T0
-
t1: T1
-
t2: T2
-
Type parameters
Parameters
-
union: Component<T0, T1, T2, T3>
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
Type parameters
Parameters
-
union: Component<T0, T1, T2, T3, T4>
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
t4: T4
-
Parameters
Returns Element
|
undefined
-
Type parameters
Parameters
Returns Element
|
undefined
-
Type parameters
Parameters
-
union: Component<T0, T1> | undefined
-
t0: T0
-
t1: T1
Returns Element
|
undefined
-
Type parameters
Parameters
-
union: Component<T0, T1, T2> | undefined
-
t0: T0
-
t1: T1
-
t2: T2
Returns Element
|
undefined
-
Type parameters
Parameters
-
union: Component<T0, T1, T2, T3> | undefined
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
Returns Element
|
undefined
-
Type parameters
Parameters
-
union: Component<T0, T1, T2, T3, T4> | undefined | null
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
t4: T4
Returns Element
|
undefined
|
null
-
Parameters
Returns Element
|
null
-
Type parameters
Parameters
Returns Element
|
null
-
Type parameters
Parameters
-
union: Component<T0, T1> | null
-
t0: T0
-
t1: T1
Returns Element
|
null
-
Type parameters
Parameters
-
union: Component<T0, T1, T2> | null
-
t0: T0
-
t1: T1
-
t2: T2
Returns Element
|
null
-
Type parameters
Parameters
-
union: Component<T0, T1, T2, T3> | null
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
Returns Element
|
null
-
Type parameters
Parameters
-
union: Component<T0, T1, T2, T3, T4> | null
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
t4: T4
Returns Element
|
null
-
Parameters
Returns Element
|
undefined
|
null
-
Type parameters
Parameters
-
union: Component<T0> | undefined | null
-
t0: T0
Returns Element
|
undefined
|
null
-
Type parameters
Parameters
-
union: Component<T0, T1> | undefined | null
-
t0: T0
-
t1: T1
Returns Element
|
undefined
|
null
-
Type parameters
Parameters
-
union: Component<T0, T1, T2> | undefined | null
-
t0: T0
-
t1: T1
-
t2: T2
Returns Element
|
undefined
|
null
-
Type parameters
Parameters
-
union: Component<T0, T1, T2, T3> | undefined | null
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
Returns Element
|
undefined
|
null
-
Type parameters
Parameters
-
union: Component<T0, T1, T2, T3, T4> | undefined | null
-
t0: T0
-
t1: T1
-
t2: T2
-
t3: T3
-
t4: T4
Returns Element
|
undefined
|
null
Provides a way to render an component
import * as React from 'react'; import renderComponent, { Component } from '@ef-carbon/react-render-component'; interface IProps { Component: Component; } class Example extends React.PureComponent<IProps> { render(): React.ReactNode { return renderComponent(this.props.Component); } }
import * as React from 'react'; import renderComponent, { Component } from '@ef-carbon/react-render-component'; interface IProps { Component: Component<number, string>; // (n: number, s: string) => Element } class Example extends React.PureComponent<IProps> { render(): React.ElementNode { return renderComponent(this.props.Component, 1, 'hello'); } }