What problem does it solve?
This Skill prevents common integration failures by guiding you through wiring CometChat’s React UI Kit into a plain React (Vite or CRA) app without mis-initialization, broken routing, or layout bugs.
Core Features & Use Cases
- Provider setup with React StrictMode guards: Ensures
CometChatUIKit.init() and login don’t run twice during development mounts, avoiding duplicate WebSocket connections and “login request ends” errors.
- Routing integration patterns: Shows how to attach a chat experience to React Router v6 (both
createBrowserRouter and <Routes>/<Route> patterns) or handle apps with no router.
- Layout + CSS integration: Covers the correct one-time import of
@cometchat/chat-uikit-react/css-variables.css and highlights the flexbox minHeight: 0 / minWidth: 0 rules that prevent chat panels from overflowing the viewport.
Quick Start
Ask it to generate the React Vite/CRA integration plan for mounting CometChatProvider, wiring a /messages route to your chat page, and applying the required CSS import and flex layout constraints.