This example shows you how to use React and TalkJS to create a team chat with channels (like Slack or Teams). It's similar to the remote work demo that you can try on our website. See our How to use TalkJS to create a team chat with channels tutorial for more details.
The example uses React version 18. You can use the React SDK with versions 17 and up.
- Clone or download this project.
- Install dependencies by either running
npm install
oryarn
. - Create a TalkJS account.
- In
talkjsConfig.js
, replaceappId
with your own app ID. You can find your app ID on the Settings page of your TalkJS dashboard. - From this point on, you're ready to start up the app using using either
npm run
oryarn start
. The app will be up and running at localhost:3000.
The app is prepopulated with a default user and a couple of hardcoded conversations, which easily can be replaced with your own users and conversations. You can find these conversations and the default userId
in src/talkJsConfig.js
as well.