@serenity-is/corelib / Component
Class: Component<T>
Defined in: ../domwise/dist/index.d.ts:2250
Base class for creating JSX components with optional props, children, and ref support.
Extend this class and override the render method to return a JSXElement.
Type Parameters
T
T = any
The type of the component's props.
Constructors
Constructor
new Component<
T>(props):Component<T>
Defined in: ../domwise/dist/index.d.ts:2252
Parameters
props
T & object
Returns
Component<T>
Properties
props
readonlyprops:T&object
Defined in: ../domwise/dist/index.d.ts:2256
Type Declaration
children?
optionalchildren:ComponentChildren
ref?
optionalref:Ref<any>
isComponent
staticisComponent:boolean
Defined in: ../domwise/dist/index.d.ts:2251
Methods
render()
render():
JSXElement
Defined in: ../domwise/dist/index.d.ts:2260