File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,20 @@ How to install
23
23
<script src =" https://www.amcharts.com/lib/3/themes/light.js" ></script >
24
24
```
25
25
26
- 4 . If you are using ` <script> ` tags, include the React and ` amcharts3-react.js ` files in your HTML :
26
+ 4 . If you are using a bundler (like [ Webpack ] ( https://webpack.js.org/ ) ), import the ` @amcharts/ amcharts3-react` plugin :
27
27
28
- ``` html
29
- <script src =" node_modules/react/dist/react.min.js" ></script >
30
- <script src =" node_modules/react-dom/dist/react-dom.min.js" ></script >
31
- <script src =" node_modules/@amcharts/amcharts3-react/amcharts3-react.js" ></script >
28
+ ``` js
29
+ import AmCharts from " @amcharts/amcharts3-react" ;
32
30
```
33
31
34
32
----
35
33
36
- If you are using a bundler (like [ Webpack ] ( https://webpack.js.org/ ) ), import the ` @amcharts/ amcharts3-react` plugin :
34
+ If you are using ` <script> ` tags, include the React and ` amcharts3-react.js ` files in your HTML :
37
35
38
- ``` js
39
- var AmCharts = require (" @amcharts/amcharts3-react" );
36
+ ``` html
37
+ <script src =" node_modules/react/dist/react.min.js" ></script >
38
+ <script src =" node_modules/react-dom/dist/react-dom.min.js" ></script >
39
+ <script src =" node_modules/@amcharts/amcharts3-react/amcharts3-react.js" ></script >
40
40
```
41
41
42
42
How to use
You can’t perform that action at this time.
0 commit comments