10000 Improve wording in README example · rduque1/react-plotly.js@bad0559 · GitHub
[go: up one dir, main page]

Skip to content

Commit bad0559

Browse files
authored
Improve wording in README example
1 parent 9ce759c commit bad0559

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ Given perhaps a script tag that has loaded a CDN version of plotly.js,
112112
you may then inject Plotly and use the returned React component:
113113

114114
```javascript
115-
import plotComponentFactory from 'react-plotly.js/factory'
116-
const Plot = plotComponentFactory(Plotly);
115+
import createPlotlyComponent from 'react-plotly.js/factory'
116+
const Plot = createPlotlyComponent(Plotly);
117117

118118
render () {
119119
return <Plot

0 commit comments

Comments
 (0)
0