Skip to content

Commit 94e39ef

Browse files
authored
Merge pull request #97 from KBIAnews/react-15-migration
Update to React 15
2 parents 3ab31b8 + 4a0e06b commit 94e39ef

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "src/htmltojsx.js",
66
"bin": "src/cli.js",
77
"dependencies": {
8-
"react": "~0.14.6",
8+
"react": "~15.4.1",
9+
"react-dom": "~15.4.1",
910
"yargs": "~4.6.0",
1011
"jsdom-no-contextify": "~3.1.0"
1112
},

src/htmltojsx.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var ELEMENT_ATTRIBUTE_MAPPING = {
3535
}
3636
};
3737

38-
var HTMLDOMPropertyConfig = require('react/lib/HTMLDOMPropertyConfig');
38+
var HTMLDOMPropertyConfig = require('react-dom/lib/HTMLDOMPropertyConfig');
3939

4040
// Populate property map with ReactJS's attribute and property mappings
4141
// TODO handle/use .Properties value eg: MUST_USE_PROPERTY is not HTML attr

0 commit comments

Comments
 (0)