npm install keen-react-dashboards --save
Use this component to use dashboard builder on Your website. All the configuration properties could be passed in props.
import React from 'react';
import ReactDOM from 'react-dom';
import Dashboards from 'keen-react-dashboards';
const App = () => {
return (
<Dashboards
container="#app" //required
keenAnalysis={{
config: {
projectId: 'YOUR_PROJECT_ID',
masterKey: 'YOUR_MASTER_KEY',
protocol: 'https',
host: 'api.keen.io'
}
}}
/>
);
};
ReactDOM.render(<App />, document.getElementById('app'));