example cleanup
This commit is contained in:
parent
31c5b21220
commit
d78084ab90
2 changed files with 4 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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'))
|
||||
ReactDOM.render(h(DBMon, null), document.getElementById("app"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue