var Options = React.createClass({
render: function() {
var labelStyle = {
color: this.state.value,
padding: '0 10px'
};
return
Your useful text
;
},
getInitialState: function() {
return { value: 'red' };
},
handleChange: function(value) {
this.setState({ value });
}
});
return ;