---
jsApi: true
title: "[F] $useRef"

---
```ts
$useRef(
   context, 
   target, 
   ref): void
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `context` | `DecoratorContext` |
| `target` | `ModelProperty` \| `Model` |
| `ref` | `string` |

## Returns

`void`
