Getting Started - React JS SDK
Install a React SDK
The easiest way to get started is by installing the sdk in your app.
$ npm install "@videosdk.live/react-sdk"
$ 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.
Check out official example of React JS SDK implementation: videosdk-rtc-react-sdk-example