# Type alias ComponentFactory<P, T>

ComponentFactory<P, T>: ((props?, ...children) => CElement<P, T>)

#### Type Parameters

- P
- T extends Component<P, ComponentState>

#### Type declaration

- - (props?, ...children): CElement<P, T>

  - #### Parameters

    - `Optional` props: ClassAttributes<T> & P
    - `Rest` ...children: ReactNode[]

    #### Returns CElement<P, T>

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