var Select = React.createClass({
getInitialState: function() {
return {
options: optionsService.getoptions()
};
},
renderOptions: function() {
return this.state.genres.map(function(genre, i){
return (
<option value={i} value={i}>Один</option>
)
})
},
render: function() {
return (
<select>
{ this.renderOptions() }
</select>
)
}
});
И radio, почему-то только по одному:
codepen.io/anon/pen/rVqZKm
['label' => 'Наши собаки','options' => ['id' => 'down_history'], 'items'=>[
['label' => 'Наши волонтёры', 'url' => ['/site/event'],'options' => ['id' => 'wn_history']],
]],
npm install npm -g