You can refer to the Cobalt’s GitHub repo for the React SDK here.
Install
First, install@cobaltio/react-cobalt-js and @cobaltio/cobalt-js via the terminal.
Initialise
ImportProvider & Config
Render Cobalt Connect
Perform the on click action to render the react component of cobalt connect
- Config component needs to be wrapped inside the Provider component.
- Pass the Cobalt session token (that you generated using the Cobalt backend SDK) to the provider.