Linked Questions

Popular Questions

When moving to the latest plotly their example no longer works

The plotly-react readme points to this codepen (in the Loading from a tag section) :

Increasing the version of react-plotly.js from "1.0.2" gives error "latest" TypeError: createPlotlyComponent is not a function. (In 'createPlotlyComponent(Plotly)', 'createPlotlyComponent' is an instance of Object)

Would love to know how to solve this... (tried many things - I'm not a js expert)

html: <script crossorigin src=""></script>

js: const Plot = createPlotlyComponent(Plotly);

Related Questions