diff --git a/README.md b/README.md index 80085496..03ac9747 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ This rewrite aims to fix longstanding API design issues, significantly improve p Code still is in flux. Most notably, components and thunks (`{subtree: "retain"}`) are currently not implemented yet and there are several use cases that still need to be polished. DO NOT USE IN PRODUCTION YET! -Some examples of usage can be found in the [examples](examples) folder. [ThreadItJS](examples/threaditjs/index.html) has the largest API surface coverage and comments indicating pending issues in framework usability. Note that the APIs those examples use may not become the final public API points in v1.0. +Some examples of usage can be found in the [examples](examples) folder. [ThreadItJS](http://cdn.rawgit.com/lhorie/mithril.js/rewrite/examples/threaditjs/index.html) has the largest API surface coverage and comments indicating pending issues in framework usability. Note that the APIs those examples use may not become the final public API points in v1.0. ## Performance diff --git a/examples/dbmonster/react/app.js b/examples/dbmonster/react/app.js index a5b36ef1..bc099ca9 100644 --- a/examples/dbmonster/react/app.js +++ b/examples/dbmonster/react/app.js @@ -51,20 +51,14 @@ var Database = React.createClass({ var DBMon = React.createClass({ getInitialState: function getInitialState() { - return { - databases: [] - } + return {databases: []} }, loadSamples: function loadSamples() { var data = ENV.generateData(true).toArray() perfMonitor.startProfile("render") - - this.setState({ - databases: data - }) - + this.setState({databases: data}) perfMonitor.endProfile("render") setTimeout(this.loadSamples, ENV.timeout) @@ -91,4 +85,4 @@ var DBMon = React.createClass({ } }) -ReactDOM.render(h(DBMon, null), document.getElementById('app')) \ No newline at end of file +ReactDOM.render(h(DBMon, null), document.getElementById("app")) \ No newline at end of file