# createActorMethodHooks

> **createActorMethodHooks**\<`Service`, `Transform`\>(`reactor`): `object`

Defined in: [react/src/hooks/useActorMethod.ts:487](https://github.com/B3Pay/ic-reactor/blob/70bedf3c8779611a3b35710510442dee7f630b87/packages/react/src/hooks/useActorMethod.ts#L487)

Creates a bound useMethod hook for a specific reactor instance.

## Type Parameters

### Service

`Service` = [`BaseActor`](https://ic-reactor.b3pay.net/v3/libs/type-aliases/baseactor/)

### Transform

`Transform` *extends* keyof [`TransformArgsRegistry`](https://ic-reactor.b3pay.net/v3/libs/interfaces/transformargsregistry/)\<`unknown`\> = `"candid"`

## Parameters

### reactor

[`Reactor`](https://ic-reactor.b3pay.net/v3/libs/classes/reactor/)\<`Service`, `Transform`\>

## Returns

### useMethod

> **useMethod**: \<`Method`\>(`config`) => [`UseReactorMethodResult`](https://ic-reactor.b3pay.net/v3/libs/interfaces/usereactormethodresult/)\<`Service`, `Method`, `Transform`\>

Hook for calling methods on the bound reactor.

#### Type Parameters

##### Method

`Method` *extends* `string`

#### Parameters

##### config

`Omit`\<[`UseReactorMethodParameters`](https://ic-reactor.b3pay.net/v3/libs/interfaces/usereactormethodparameters/)\<`Service`, `Method`, `Transform`\>, `"reactor"`\>

#### Returns

[`UseReactorMethodResult`](https://ic-reactor.b3pay.net/v3/libs/interfaces/usereactormethodresult/)\<`Service`, `Method`, `Transform`\>

## Example

```tsx
const { useMethod } = createActorMethodHooks(reactor)
```