> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# `__ElementIsEqual`

## Introduction

Determines if the two passed Element objects are the same Element.

## Syntax

```jsx
__ElementIsEqual(left: Element, right: Element) : bool;
```

### Parameters

|  Key  | Description                    |
| :---: | ------------------------------ |
|  left | The left node to be compared.  |
| right | The right node to be compared. |

### Return Value

Returns true only when the left and right are the same node.

## Example

The frontend framework can perform the comparison operation as follows.

```jsx
// main-thread.js
let childA = __CreateElement('view', 0, {});

let childB = __CreateElement('view', 0, {});

let isEqual = __ElementIsEqual(childA, childB);
```
