Skip to content

Commit 3b590e0

Browse files
committed
[changed] Upgrade to React 0.11.0
Fixes #87
1 parent 51e1be2 commit 3b590e0

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

modules/components/Route.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,8 @@ var Route = React.createClass({
214214
},
215215

216216
render: function () {
217-
// TODO: In React 0.11 we will be able to `return null` here.
218-
// https://github.com/facebook/react/issues/1058
219217
if (!this.state.path)
220-
return React.DOM.div();
218+
return null;
221219

222220
return this.props.handler(computeHandlerProps(this.state.matches || [], this.state.activeQuery));
223221
}

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@
3737
"karma-mocha": "^0.1.3",
3838
"karma-webpack": "^1.2.1",
3939
"mocha": "^1.20.1",
40-
"react": ">=0.10.0",
40+
"react": ">=0.11.0",
4141
"rf-release": "^0.1.2",
4242
"uglify-js": "^2.4.15",
4343
"webpack": "^1.2.0-beta5",
4444
"webpack-dev-server": "^1.4.2"
4545
},
4646
"peerDependencies": {
47-
"react": ">=0.10.0"
47+
"react": ">=0.11.0"
4848
},
4949
"dependencies": {
5050
"es6-promise": "^1.0.0",

0 commit comments

Comments
 (0)