# Interface ReactElement<P, T>

Represents a JSX element.

Where ReactNode represents everything that can be rendered, `ReactElement` only represents JSX.

#### Example

    const element: ReactElement = <div />;

interface ReactElement<P, T> {
key: string;
props: P;
type: T;
}

#### Type Parameters

- P = any

  The type of the props object

- T extends string | JSXElementConstructor<any> = string | JSXElementConstructor<any>

  The type of the component or tag

#### Hierarchy (view full)

- ReactElement
  - ReactComponentElement
  - FunctionComponentElement
  - ComponentElement
  - DOMElement
  - ReactPortal

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

#####
Index

### Properties

key
props
type

## Properties

### key

key: string

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

### props

props: P

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

### type

type: T

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