Use react.createElement in example in basic/
ThomasCrvsr committed
Oct 14, 2014 at 10:18 UTC
4f1f8c0605c348baa693186bf81e66f46d3942ef
1 file changed
+4
-1
examples/basic/index.html
+4
-1
@@ -41,7 +41,10 @@
41
var start = new Date().getTime();
42
setInterval(function() {
43
React.renderComponent(
44
- ExampleApplication({elapsed: new Date().getTime() - start}),
44
+ /* Call React.createElement instead of
45
+ * ExampleApplication({...}) which is depecrated
46
+ */
47
+ React.createElement(ExampleApplication, {elapsed: new Date().getTime() - start}),
48
document.getElementById('container')
49
);
50
}, 50);