Skip to main content
The React SDK can be added to your application by installing the npm packages:

Client initialization

In the TelnyxRTCProvider component, you can pass credentials and options objects with custom ringtones:

Phone component

In the Phone component, you would subscribe to the notifications from the WebRTC client, specify callbacks for Telnyx client event handlers, and define an Audio element. First import the React client:
Define a Phone function component where you will manage event handlers using callbacks and control audio stream in the <Audio /> element:

Sample React app

Check out our sample React application for a full implementation of the Telnyx Voice SDK with React components.