Skip to main content
caution

This page has been deprecated.

We've released a new version of pages with some improvements and smoother experience.

Here is the link of SDK for this page.

Getting Started - React JS SDK

React JS SDK wraps up out JavaScript SDK into usable hooks API. It simplifies the code for React JS.

Install a React SDK

The easiest way to get started is by installing the sdk in your app.

Npm

$ npm install "@videosdk.live/react-sdk"

Yarn

$ yarn add "@videosdk.live/react-sdk"

Use hooks API

Our React JS SDK provides two important hooks API:

  • useMeeting : Responsible to handle meeting environment.
  • useParticipant : Responsible to handle Participant

Also, React Provider and Consumer to listen changes in meeting environment.

  • MeetingProvider : Meeting Provider is Context.Provider that allows consuming components to subscribe to meeting changes
  • MeetingConsumer : Meeting Consumer is Context.Consumer that subscribes to meeting changes.
note

Check out official example of React JS SDK implementation: videosdk-rtc-react-sdk-example

Got a Question? Ask us on discord