---
id: fast-element.refbehavior._constructor_
title: RefBehavior.(constructor)
hide_title: true
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[@microsoft/fast-element](./fast-element.md) &gt; [RefBehavior](./fast-element.refbehavior.md) &gt; [(constructor)](./fast-element.refbehavior._constructor_.md)

## RefBehavior.(constructor)

Creates an instance of RefBehavior.

<b>Signature:</b>

```typescript
constructor(target: HTMLElement, propertyName: string);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  target | HTMLElement | The element to reference. |
|  propertyName | string | The name of the property to assign the reference to. |
