Client-side SDKs
React SDK
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
Import Provider
& 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.
Example
For an example implementation, you can check out the App.js file in the example directory.