@serenity-is/corelib / ComponentClass
Interface: ComponentClass<P, T>
Defined in: ../domwise/dist/index.d.ts:2313
A class-based JSX component. Extend Component or implement this interface
and override render to return a JSXElement.
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.
Constructors
Constructor
new ComponentClass(
props):ComponentClass<P,T>
Defined in: ../domwise/dist/index.d.ts:2318
Constructs the component with the given props.
Parameters
props
P
Props including optional children.
Returns
ComponentClass<P, T>
Properties
defaultProps?
optionaldefaultProps:Partial<P>
Defined in: ../domwise/dist/index.d.ts:2325
Optional default prop values merged in by the JSX factory before construction.
displayName?
optionaldisplayName:string
Defined in: ../domwise/dist/index.d.ts:2331
Optional display name used in devtools / error messages.
props?
readonlyoptionalprops:P&object
Defined in: ../domwise/dist/index.d.ts:2327
Props passed to the instance, including optional children.
Type Declaration
children?
optionalchildren:ComponentChildren
Methods
render()
render():
JSXElement
Defined in: ../domwise/dist/index.d.ts:2323
Renders the component.
Returns
The rendered JSXElement or null.