Quantcast
Channel: 🎛️ Dash - Plotly Community Forum
Viewing all articles
Browse latest Browse all 6271

How to use dash-core-component in ReactJS file

$
0
0

@sourabhraj wrote:

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

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6271

Latest Images

Trending Articles



Latest Images