Use react.createElement in example in basic/
This commit is contained in:
parent
4dcc1161fa
commit
4f1f8c0605
|
@ -41,7 +41,10 @@
|
|||
var start = new Date().getTime();
|
||||
setInterval(function() {
|
||||
React.renderComponent(
|
||||
ExampleApplication({elapsed: new Date().getTime() - start}),
|
||||
/* Call React.createElement instead of
|
||||
* ExampleApplication({...}) which is depecrated
|
||||
*/
|
||||
React.createElement(ExampleApplication, {elapsed: new Date().getTime() - start}),
|
||||
document.getElementById('container')
|
||||
);
|
||||
}, 50);
|
||||
|
|
Loading…
Reference in New Issue