ReactElement
Defined in: node_modules/@types/react/index.d.ts:325
Represents a JSX element.
Where ReactNode represents everything that can be rendered, ReactElement
only represents JSX.
Example
Section titled “Example”const element: ReactElement = <div />;Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type | Description |
|---|---|---|
P |
unknown |
The type of the props object |
T extends | string | JSXElementConstructor<any> |
| string | JSXElementConstructor<any> |
The type of the component or tag |
Properties
Section titled “Properties”key: string | null;Defined in: node_modules/@types/react/index.d.ts:331
props: P;Defined in: node_modules/@types/react/index.d.ts:330
type: T;Defined in: node_modules/@types/react/index.d.ts:329