Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Commit

Permalink
add react-dom in peerDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
oliger committed Oct 9, 2015
1 parent f7a0a7d commit 77b34d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions lib/core.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var React = require('react');
var ReactDOM = require('react-dom');


module.exports = {
createClass: function(chartType, methodNames, dataKey) {
var classData = {
Expand Down Expand Up @@ -79,7 +79,6 @@ module.exports = {
extra(methodNames[i]);
}

var React = require('react');
return React.createClass(classData);
}
};
Expand Down Expand Up @@ -124,4 +123,3 @@ var addData = function(nextProps, chart, setIndex, pointIndex) {
});
chart.addData(values, nextProps.data.labels[setIndex]);
};

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"homepage": "https://github.com/jhudson8/react-chartjs",
"peerDependencies": {
"react": "*",
"react-dom": "*",
"chart.js": "*"
},
"devDependencies": {
Expand Down

0 comments on commit 77b34d7

Please sign in to comment.