cometchat-react-patterns
Ground truth:
@cometchat/chat-uikit-react@^6(+@cometchat/calls-sdk-javascript@^5) — installed package types +ui-kit/react. Official docs: https://www.cometchat.com/docs/ui-kit/react/overview · Docs MCP:claude mcp add --transport http cometchat-docs https://www.cometchat.com/docs/mcp(or fetch the URL directly without MCP). Verify symbols against the installed package/source before relying on them.
Purpose
This skill teaches Claude how to integrate CometChat into a React project that uses Vite or Create React App. These are client-only environments with no SSR, which simplifies integration significantly.
Read these companion skills first:
cometchat-core-- initialization, login, CSS, provider pattern, anti-patternscometchat-components-- component catalog and composition patternscometchat-placement-- WHERE to put chat (route, modal, drawer, embedded)
This skill covers the HOW for React specifically: project detection, provider wiring, routing patterns, env var conventions, and React-specific gotchas.
1. Project detection
A project is a plain React project (not a meta-framework) when package.json has react and ONE of these bundlers, but NONE of the framework packages: