@serenity-is/corelib / ComponentInstance
Interface: ComponentInstance<P, T>
Defined in: ../domwise/dist/index.d.ts:2633
An instance of a class-based JSX component created by the JSX factory.
Type Parameters
P
P = { }
The type of the component's props.
T
T extends Node = JSXElement
The type of the DOM node the component renders.
Properties
defaultProps?
optionaldefaultProps:Partial<P>
Defined in: ../domwise/dist/index.d.ts:2640
Optional default prop values merged in by the JSX factory before construction.
displayName?
optionaldisplayName:string
Defined in: ../domwise/dist/index.d.ts:2644
Optional display name used in devtools / error messages.
props?
readonlyoptionalprops:P&object
Defined in: ../domwise/dist/index.d.ts:2642
Props passed to the instance, including optional children.
Type Declaration
children?
optionalchildren:ComponentChildren
Methods
render()
render():
JSXElement
Defined in: ../domwise/dist/index.d.ts:2638
Renders the component.
Returns
The rendered JSXElement or null.