1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/public/js/components/strategy/StrategyList.jsx
2020-02-20 08:30:14 +01:00

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;