Skip to content

Commit a444df9

Browse files
committed
Bumping to 3.1.0
1 parent f78e3ac commit a444df9

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ How to use
4444

4545
```js
4646
React.createElement(AmCharts.React, {
47+
className: "my-class",
4748
style: {
4849
width: "100%",
4950
height: "500px"
@@ -61,6 +62,7 @@ Or alternatively if you are using JSX:
6162

6263
```js
6364
<AmCharts.React
65+
className="my-class"
6466
style={{
6567
width: "100%",
6668
height: "500px"
@@ -111,6 +113,14 @@ You can see an example program in the `examples/webpack-export` folder. It updat
111113

112114
## Changelog
113115

116+
### 3.1.0
117+
118+
* Adding in `className` property for specifying the CSS class for the element.
119+
120+
### 3.0.3
121+
122+
* Fixing version ranges for `react` and `react-dom`
123+
114124
### 3.0.0
115125

116126
* Rather than passing in the configuration directly, instead you must pass in the configuration using the new `options` property.

amcharts3-react.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ console.warn("Version 1.0 is outdated. Please upgrade to version 2.0:\nhttps://g
276276
render: function () {
277277
return React.DOM.div({
278278
id: this.state.id,
279-
className: this.props.className || null,
280279
style: {
281280
width: this.props.width || "100%",
282281
height: this.props.height || "100%"

0 commit comments

Comments
 (0)