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

# `__GetParent`

## Introduction

Returns the parent node of the Element.

## Syntax

```jsx
__GetParent(element: Element) : Element|undefined;
```

### Parameters

|   Key   | Description         |
| :-----: | ------------------- |
| element | Any Element object. |

### Return Value

Returns the parent node of the current node. If there is no parent node, it returns undefined.

## Example

The frontend framework can retrieve the parent node of an Element as follows.

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

let parent = __GetParent(element);
```
