[**@twipped/hooks**](../../README.md) • **Docs**

***

# Function: useUpdatedRef()

> **useUpdatedRef**\<`T`\>(`value`): `MutableRefObject`\<`T`\>

Returns a ref that is immediately updated with the new value

## Type parameters

• **T**

## Parameters

• **value**: `any`

The Ref value

## Returns

`MutableRefObject`\<`T`\>

## Function

useUpdatedRef

## Source

[hooks/useUpdatedRef.js:11](https://github.com/Twipped/hooks/blob/main/hooks/useUpdatedRef.js#L11)
