We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60b8709 commit 09e4aebCopy full SHA for 09e4aeb
lib/facade.js
@@ -2,6 +2,7 @@
2
3
var path = require('path');
4
var React = require('react');
5
+var ReactDOM = require('react-dom');
6
7
module.exports = {
8
render: function (componentPath, props) {
@@ -10,6 +11,6 @@ module.exports = {
10
11
props = props && JSON.parse(props);
12
13
var ComponentFactory = React.createFactory(Component);
- return React.renderToString(ComponentFactory(props));
14
+ return ReactDOM.renderToString(ComponentFactory(props));
15
}
16
};
package.json
@@ -26,8 +26,9 @@
26
27
],
28
"dependencies": {
29
- "commander": "^2.6.0",
30
- "node-jsx": "^0.11.0",
31
- "react": "^0.12.2"
+ "commander": "^2.9.0",
+ "node-jsx": "^0.13.3",
+ "react": "^0.14.7",
32
+ "react-dom": "^0.14.7"
33
34
0 commit comments