Closed
Description
This will soon be published. Here are the choices:
-
A single module will export both the version with plotly and as a factory.
import PlotComponent from 'react-plotly.js'
Or, alternatively,
import Plotly from 'plotly.js' const EquivalentPlotComponent = factory(Plotly)
This means
plotly.js
will be a peer dependency ofreact-plotly.js
. I learned today that peer dependencies are optional and just give a warning if not found. So the usage will either be that you import the factory and create your own, based on your own version of plotly, or that you import the component and it's up to you tonpm install plotly.js
so that it's available.
See also: -
Description will be
A Plotly.js react component from Plotly
.
Metadata
Metadata
Assignees
Labels
No labels