# Function batch

- batch<A, R>(callback, a): R

- #### Type Parameters

  - A
  - R

  #### Parameters

  - callback: ((a) => R)
    - - (a): R

      - #### Parameters

        - a: A

        #### Returns R

  - a: A

  #### Returns R

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/index.d.ts:47
- batch<R>(callback): R

- #### Type Parameters

  - R

  #### Parameters

  - callback: (() => R)
    - - (): R

      - #### Returns R

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/index.d.ts:48