Use react.createElement in example in basic/

This commit is contained in:
ThomasCrvsr 2014-10-14 10:18:00 +02:00
parent 4dcc1161fa
commit 4f1f8c0605
1 changed files with 4 additions and 1 deletions

View File

@ -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);