Skip to content

Commit 0930606

Browse files
committed
Improving the README
1 parent a444df9 commit 0930606

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@ How to install
2323
<script src="https://www.amcharts.com/lib/3/themes/light.js"></script>
2424
```
2525

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:
2727

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";
3230
```
3331

3432
----
3533

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:
3735

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>
4040
```
4141

4242
How to use

0 commit comments

Comments
 (0)