@samitouri / QOS-React-2 / commits / 0c4be5a8f9

Update Todo MVC example

A small patch for the Todo MVC example to use React 0.11.0. This then allows the `MainSection` to return `null` instead of previous `<noscript/>`.

Garren Smith committed Jul 15, 2014 at 11:13 UTC 0c4be5a8f976b5fba5c29843b7cf25a89f5b7d55
2 files changed +2 -2
examples/todomvc-flux/js/components/MainSection.react.js
+1 -1
@@ -35,7 +35,7 @@ var MainSection = React.createClass({
35 // This section should be hidden by default
36 // and shown when there are todos.
37 if (Object.keys(this.props.allTodos).length < 1) {
38 - return <noscript />;
38 + return null;
39 }
40
41 var allTodos = this.props.allTodos;
examples/todomvc-flux/package.json
+1 -1
@@ -5,7 +5,7 @@
5 "main": "js/app.js",
6 "dependencies": {
7 "es6-promise": "~0.1.1",
8 - "react": "~0.10"
8 + "react": "~0.11.0"
9 },
10 "devDependencies": {
11 "browserify": "~2.36.0",