react-templates/playground/playground.rt.js

16 lines
585 B
JavaScript
Raw Normal View History

2014-11-16 16:20:04 +01:00
var React = require('react');
var _ = require('lodash');
var PlaygroundSample = require('./playgroundSample');
'use strict';
module.exports = function () {
return React.DOM.div({}, React.DOM.form({}, React.DOM.textarea({
'valueLink': this.linkState('templateHTML'),
'className': 'large-text-area'
}), React.DOM.br({}), React.DOM.textarea({
'valueLink': this.linkState('templateProps'),
'className': 'large-text-area'
})), PlaygroundSample({
'renderFunc': this.templateFunc,
'stateString': this.state.templateProps
}));
};