react-templates/playground/main.js

15 lines
385 B
JavaScript
Raw Normal View History

2014-12-02 17:59:03 +01:00
/**
* Created by avim on 12/2/2014.
*/
2014-11-16 16:20:04 +01:00
var React = require('react/addons');
2014-12-02 17:59:03 +01:00
var fiddle = require('./fiddle.js');
var intro = require('./intro.js');
2014-11-17 12:27:57 +01:00
2014-12-02 17:59:03 +01:00
window.initFiddle = function () {
window.fiddle = React.render(fiddle(), document.getElementById('container'));
}
2014-11-30 16:34:43 +01:00
2014-12-02 17:59:03 +01:00
window.initIntro = function () {
window.intro = React.render(intro(), document.getElementById('container'));
}