# Function hydrate

- hydrate<T>(element, container, callback?): T

- #### Type Parameters

  - T extends Element

  #### Parameters

  - element: DOMElement<DOMAttributes<T>, T>
  - container: Container
  - `Optional` callback: (() => void)
    - - (): void

      - #### Returns void

  #### Returns T

  #### Deprecated

  See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/index.d.ts:43
- hydrate(element, container, callback?): Element

- #### Parameters

  - element: DOMElement<DOMAttributes<any>, any>[]
  - container: Container
  - `Optional` callback: (() => void)
    - - (): void

      - #### Returns void

  #### Returns Element

  #### Deprecated

  See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/index.d.ts:43
- hydrate(element, container, callback?): void

- #### Parameters

  - element: FunctionComponentElement<any> | FunctionComponentElement<any>[]
  - container: Container
  - `Optional` callback: (() => void)
    - - (): void

      - #### Returns void

  #### Deprecated

  See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/index.d.ts:43
- hydrate<P, T>(element, container, callback?): T

- #### Type Parameters

  - P
  - T extends Component<P, any, any>

  #### Parameters

  - element: CElement<P, T>
  - container: Container
  - `Optional` callback: (() => void)
    - - (): void

      - #### Returns void

  #### Returns T

  #### Deprecated

  See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/index.d.ts:43
- hydrate(element, container, callback?): Component<any, any, any>

- #### Parameters

  - element: CElement<any, Component<any, any, any>>[]
  - container: Container
  - `Optional` callback: (() => void)
    - - (): void

      - #### Returns void

  #### Returns Component<any, any, any>

  #### Deprecated

  See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/index.d.ts:43
- hydrate<P>(element, container, callback?): void | Element | Component<P, any, any>

- #### Type Parameters

  - P

  #### Parameters

  - element: ReactElement<P, string | JSXElementConstructor<any>>
  - container: Container
  - `Optional` callback: (() => void)
    - - (): void

      - #### Returns void

  #### Returns void | Element | Component<P, any, any>

  #### Deprecated

  See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis

  - Defined in common/temp/node_modules/.pnpm/@types+react-dom@18.3.0/node_modules/@types/react-dom/index.d.ts:43
- hydrate(element, container, callback?): void | Element | Component<any, any, any>

- #### Parameters

  - element: ReactElement<any, string | JSXElementConstructor<any>>[]
  - container: Container
  - `Optional` callback: (() => void)
    - - (): void

      - #### Returns void

  #### Returns void | Element | Component<any, any, any>

  #### Deprecated

  See https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis

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