mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
19 lines
483 B
JavaScript
19 lines
483 B
JavaScript
var React = require('react'),
|
|
Strategy = require('./Strategy');
|
|
|
|
var StrategyList = React.createClass({
|
|
propTypes: {
|
|
strategies: React.PropTypes.array.isRequired
|
|
},
|
|
|
|
render: function() {
|
|
var strategyNodes = this.props.strategies.map(function(strategy) {
|
|
return <Strategy strategy={strategy} key={strategy.name} />;
|
|
});
|
|
return (
|
|
<div>{strategyNodes}</div>
|
|
);
|
|
}
|
|
});
|
|
|
|
module.exports = StrategyList; |