Loading...
;
if (invalidChannel) return
{channel?.name}
Members: {channel?.memberCount}
Created: {new Date(channel?.createdAt).toLocaleDateString()}
);
}
```
--------------------------------
### Create Open Channel
Source: https://github.com/sendbird/sendbird-uikit-react/blob/main/MIGRATION_v2-to-v3.md
Demonstrates how to create a new open channel using the `getCreateOpenChannel` method. It shows the evolution from v2 to v3 of the Sendbird SDK.
```APIDOC
## POST /api/channels/open
### Description
Creates a new open channel.
### Method
POST
### Endpoint
/api/channels/open
### Parameters
#### Request Body
- **params** (OpenChannelParams) - Required - Parameters for creating the open channel.
### Request Example
```json
{
"example": "const params = new sdk.OpenChannelParams();\ncreateOpenChannel(params)"
}
```
### Response
#### Success Response (200)
- **channel** (OpenChannel) - The newly created open channel object.
#### Response Example
```json
{
"example": "channel => { console.log(channel); }"
}
```
```
--------------------------------
### ContextMenu Component Usage
Source: https://github.com/sendbird/sendbird-uikit-react/blob/main/src/stories/ContextMenu.mdx
Documentation on how to import and utilize the ContextMenu component within a React application.
```APIDOC
## ContextMenu Component
### Description
The `ContextMenu` component is a UI utility that allows for the creation of dynamic, floating menus triggered by user interactions. It is designed to be highly customizable with nested `MenuItems` and `MenuItem` components.
### Importing
To use the component in your project, import it from the Sendbird UIKit library:
```tsx
import ContextMenu, { MenuItems, MenuItem } from '@sendbird/uikit-react/ui/ContextMenu';
```
### Usage Example
```tsx