Skip to content

Commit 09e4aeb

Browse files
committed
update to React v0.14
1 parent 60b8709 commit 09e4aeb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

lib/facade.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
var path = require('path');
44
var React = require('react');
5+
var ReactDOM = require('react-dom');
56

67
module.exports = {
78
render: function (componentPath, props) {
@@ -10,6 +11,6 @@ module.exports = {
1011
props = props && JSON.parse(props);
1112

1213
var ComponentFactory = React.createFactory(Component);
13-
return React.renderToString(ComponentFactory(props));
14+
return ReactDOM.renderToString(ComponentFactory(props));
1415
}
1516
};

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
}
2727
],
2828
"dependencies": {
29-
"commander": "^2.6.0",
30-
"node-jsx": "^0.11.0",
31-
"react": "^0.12.2"
29+
"commander": "^2.9.0",
30+
"node-jsx": "^0.13.3",
31+
"react": "^0.14.7",
32+
"react-dom": "^0.14.7"
3233
}
3334
}

0 commit comments

Comments
 (0)