1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/public/js/components/strategy/StrategyList.jsx
2020-02-20 08:30:13 +01:00

19 lines
463 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} />;
});
return (
<div>{strategyNodes}</div>
);
}
});
module.exports = StrategyList;