Skip to content

@serenity-is/domwise / ComponentType

Type Alias: ComponentType<P, T>

ComponentType<P, T> = ComponentClass<P, T> | FunctionComponent<P, T>

Defined in: types/components.d.ts:41

A JSX component: either a class-based or a function-based component.

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.