From efd88b9a8307a4148387ab3420935cead6ea0ccd Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 9 Nov 2015 23:13:43 +0000 Subject: [PATCH] upgrade to react 0.14 --- package.json | 3 ++- src/Modal.js | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index ff7d75e712..4eef79a98f 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "matrix-js-sdk": "^0.3.0", "optimist": "^0.6.1", "q": "^1.4.1", - "react": "^0.13.3", + "react": "^0.14.2", + "react-dom": "^0.14.2", "react-loader": "^1.4.0" }, "//deps": "The loader packages are here because webpack in a project that depends on us needs them in this package's node_modules folder", diff --git a/src/Modal.js b/src/Modal.js index bf7758a1a8..a7dd4ca82d 100644 --- a/src/Modal.js +++ b/src/Modal.js @@ -18,6 +18,7 @@ limitations under the License. 'use strict'; var React = require('react'); +var ReactDOM = require('react-dom'); module.exports = { DialogContainerId: "mx_Dialog_Container", @@ -52,7 +53,7 @@ module.exports = { ); - React.render(dialog, this.getOrCreateContainer()); + ReactDOM.render(dialog, this.getOrCreateContainer()); return {close: closeDialog}; }, @@ -77,7 +78,7 @@ module.exports = { ); - React.render(dialog, this.getOrCreateContainer()); + ReactDOM.render(dialog, this.getOrCreateContainer()); return {close: closeDialog}; },