This example shows how to build a React chat application using CometChat Pro SDK and React Hooks.
SCREENSHOTS
Jump straight into the code or read the accompanying step-by-step guide here on our blog.
This demo uses:
- Download the repository here or by running
git clone https://github.com/nsebhastian/react-hooks-cometchat.git
- run
npm install
- You need to sign up for CometChat PRO and create your application first
- Create an ApiKey. You can use auth-only permission for this application
- Put your AppID and ApiKey into
src/config.js
file - run
npm start
- A browser will open
localhost:3000