You can refer to the Cobalt’s GitHub repo for the React SDK here.
First, install @cobaltio/react-cobalt-js
and @cobaltio/cobalt-js
via the terminal.
Import Provider
& Config
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.
For an example implementation, you can check out the App.js file in the example directory.
You can refer to the Cobalt’s GitHub repo for the React SDK here.
First, install @cobaltio/react-cobalt-js
and @cobaltio/cobalt-js
via the terminal.
Import Provider
& Config
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.
For an example implementation, you can check out the App.js file in the example directory.