# useRenew

> For the complete documentation index, see [llms.txt](https://ensforge.com/llms.txt).

Renews names. Signature, options, result and examples for useRenew in @ensforge/react. Signature, result and examples for useRenew.

Source: https://ensforge.com/docs/reference/react/use-renew

<ApiMeta kind="Write hook" stability="stable" since="1.0.0" source="packages/react/src/hooks/named/writes.ts#L60" />

Renews names. Preset of `useWrite(Actions.registration.renew)`.

It wraps [`registration.renew`](/docs/reference/sdk/registration/renew): the same options, result and errors.

## Signature [#signature]

```ts
function useRenew(config?: Parameters<typeof useWrite>[1]): WriteResult< Parameters<typeof Actions.registration.renew>[1], Actions.registration.renew.ReturnType, Actions.registration.renew.ErrorType >
```

## Examples [#examples]

```tsx title="A button that sends it"
import { Duration } from "@ensforge/sdk"
import { useRenew } from "@ensforge/react"

function Send() {
  const { mutate, isPending } = useRenew()
  return <button disabled={isPending} onClick={() => mutate({ names: "alice.eth", duration: Duration.years(1) })}>Send</button>
}
```

## See also [#see-also]

- The [hook types](/docs/reference/react#types): `ReadResult`, `WriteResult` and `ReadConfig`.