# Type alias ComponentType<P>

ComponentType<P>: ComponentClass<P> | FunctionComponent<P>

Represents any user-defined component, either as a function or a class.

Similar to JSXElementConstructor, but with extra properties like defaultProps and contextTypes.

#### Type Parameters

- P = {}

  The props the component accepts.

#### See

- ComponentClass
- FunctionComponent

- Defined in common/temp/node_modules/.pnpm/@types+react@18.3.3/node_modules/@types/react/index.d.ts:104