Our React SDK makes it easy to use TalkJS's pre-built chat UIs inside a React web application.

The @talkjs/react SDK encapsulates talkjs, our framework-independent regular JavaScript SDK. It provides React components for UI-related matters. For anything related to data manipulation, such as synchronizing user data, or creating and joining conversations, use the regular JavaScript SDK. The React SDK is designed such that when you update to a new version of talkjs that exposes new options, methods or events, you can use these right away from the React components, without having to update @talkjs/react.

The React SDK includes TypeScript bindings.

How to install the React SDK

Use npm or yarn to install the @talkjs/react npm package along with the regular talkjs package:

1npm install talkjs @talkjs/react