16 lines
439 B
Plaintext
16 lines
439 B
Plaintext
var <%= name %> = React.createClass({
|
|
mixins: [React.addons.LinkedStateMixin],
|
|
getInitialState: function() {
|
|
return { key: 'color', val: 'blue' };
|
|
},
|
|
getProps: function() {
|
|
var ret = { style: {
|
|
color: 'black',
|
|
backgroundColor: 'white',
|
|
borderColor: 'black'
|
|
}};
|
|
ret.style[this.state.key] = this.state.val;
|
|
return ret;
|
|
},
|
|
render: <%= name %>RT
|
|
}); |