How to use dash-core-component in ReactJS file

I am trying to use dash-core-components in my react JS file, like below
// Code
import {Graph} from ‘dash-core-components’

export default class Symphony extends Component {

render() {

    const {id, figure} = this.props;

    return (
        <Graph id={id} figure={figure}/>

}
}

I used ‘npm i dash-core-components’ to install js package.

I am new to react and do not understand how to use the components of dash-core-components in ReactJS file. I did not find any document, any help would be appreciated.

Thanks
Sourabh

1 Like

Did you have any luck? I have spent the past couple of days also trying to figure this out :confused: Would be great to know!

1 Like