import { Meta } from '@storybook/blocks';

<Meta title="SDK Hooks/useMeetingManager" />

# useMeetingManager

The `useMeetingManager` hook returns the [MeetingManager](/docs/sdk-providers-meetingmanager--page) instance.

### Return Value

```javascript
MeetingManager;
```

## Importing

```javascript
import { useMeetingManager } from 'amazon-chime-sdk-component-library-react';
```

## Usage

The hook depends on the `MeetingProvider`.

```jsx
import React from 'react';
import { MeetingProvider, useMeetingManager } from 'amazon-chime-sdk-component-library-react';

const App = () => (
  <MeetingProvider>
    <MyChild />
  </MeetingProvider>
);


const MyChild = () => {
  const meetingManager = useMeetingManager();

  ...
}
```
