13 lines
463 B
JavaScript
13 lines
463 B
JavaScript
var React = require('react/addons');
|
|
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])));
|
|
}; |