cometchat-react-router-patterns
OfficialSeamless CometChat routing patterns.
Authorcometchat
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides practical patterns to integrate CometChat with React Router across v6 library mode and v7 framework mode, guiding provider placement, route patterns, SSR safety, and nested messaging UIs.
Core Features & Use Cases
- Detects and distinguishes v6 vs v7 integration modes to apply correct patterns.
- Provides v6 library mode patterns: provider placement at the router level, route configuration via createBrowserRouter or JSX Routes, useNavigate in callbacks, and nested Outlet layouts.
- Provides v7 framework mode patterns: ClientOnly wrappers to prevent SSR, dynamic imports for the CometChat UI kit, file-system routing, and the clientLoader pattern for browser-only data.
Quick Start
Follow the steps in the guide to add the CometChat provider and configure routes for your v6 or v7 app, then start your dev server.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cometchat-react-router-patterns Download link: https://github.com/cometchat/cometchat-skills/archive/main.zip#cometchat-react-router-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.