react-templates/playground/samples/rt-repeat.code

10 lines
228 B
Plaintext

var <%= name %> = React.createClass({
getInitialState: function () {
return {
items: ['One', 'Two', 'Three']
};
},
render: function () {
return <%= name %>RT.apply(this);
}
});