installing render log to count
This commit is contained in:
parent
04a0b177e0
commit
77297f9f17
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,7 @@ const ReactApp = {
|
||||||
const self = ReactApp
|
const self = ReactApp
|
||||||
const createElement = (Component, props) => <Component {...props} {...self.getProps()}/>
|
const createElement = (Component, props) => <Component {...props} {...self.getProps()}/>
|
||||||
const app = <Router createElement={createElement} routes={routes} history={browserHistory} onUpdate={self.handleUpdate} />
|
const app = <Router createElement={createElement} routes={routes} history={browserHistory} onUpdate={self.handleUpdate} />
|
||||||
|
console.log('rendering')
|
||||||
ReactDOM.render(app, document.getElementById('react-app'))
|
ReactDOM.render(app, document.getElementById('react-app'))
|
||||||
},
|
},
|
||||||
getProps: function() {
|
getProps: function() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue