react-templates/playground/intro.rt.js

13 lines
463 B
JavaScript
Raw Normal View History

2014-12-03 10:45:31 +01:00
var React = require('react/addons');
2014-12-02 17:59:03 +01:00
var _ = require('lodash');
var playGround = require('./PlayGround.js');
'use strict';
module.exports = function () {
return React.DOM.div({}, React.DOM.h1({}, 'React Templates'), playGround(_.merge({}, {
'ref': 'playground',
'direction': 'horizontal'
}, this.state.samples[0])), playGround(_.merge({}, {
'ref': 'playground',
'direction': 'horizontal'
}, this.state.samples[1])));
};