To embed dashboards from Sisense into your web application, typically you would use either the IFRAME or EmbedSDK approaches (see sisense.dev for more details).
If your application is written in React, then React components to achieve tasks, like this, make life easier.
You can always write your own components around Sisense SDKs and APIs, but here is one I wrote that you can use to get started.
To see the component working in a live sample application, simply visit this link and enter your Sisense URL and dashboard ID into the relevant input boxes.

To download the source of this example application, clone this repo and follow the instructions on the readme page.
Use the React Component in Your Application
To see more details on how to use the React Component for Sisense Embed SDK in your application, visit the repo for the component and follow the instructions on the read me.
At the time of writing this article, here is all you should need to do:
npm install --save sisensers/sisense-embedsdk-react
- Import the module into your React application
import SisenseDashboardEmbed from 'sisense-embedsdk-react'
- Use the `SisenseDashboardEmbed` component on your page
<SisenseDashboardEmbed<br/> sisenseUrl={sisenseUrl}<br/> dashboardId={dashboardId}<br/>/>
The component accepts a number of other optional 'props', including Booleans, to control the dashboard settings (toolbar, left pane, right pane), volatile mode (don't save changes to dashboard state), as well as strings for the look and feel theme, css height/width for rendered frame etc.
Also, you can control if things like EmbedSDK should be unloaded when the component unmounts through the props, as well as attach your own handler to execute when the dashboard has loaded.
I hope this helps some of you get started with using Sisense in React! Leave a comment if you use my example and share your experience.
DRay
·2 years agoI wanted to let everyone here know that there is a ComposeSDK free trial available. You can sign up here: https://www.sisense.com/platform/compose-sdk-free-trial/
steve
OP3 years agohi potatomochi
For widgets, try this (slightly different library as it uses sisenseJS) but approach is similar
https://github.com/sisense/sisensejs-components
cc moti Oleksandr_K
potatomochi
·3 years agoIs this also possible to use it to import widgets too and customise the widgets? I have some issues connecting using the APIs and SDK
steve
OP3 years agoIt's a sample / reference to help customers who need to embed into React today, as ComposeSDK is not currently available to customers.
sisense-nuna
·3 years agoIs this a precursor to the Compose SDK? Is this recommended as "the Sisense way" for using Sisense via React, or is this just a sample / reference?
cc moti