1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/public/js/components/feature/FeatureList.jsx
2014-11-03 13:54:06 +01:00

19 lines
503 B
JavaScript

var React = require('react');
var Feature = require('./Feature');
var FeatureList = React.createClass({
render: function() {
var featureNodes = this.props.features.map(function(feature) {
return (
<Feature
key={feature.name}
feature={feature}
onChange={this.props.onFeatureChanged} />
);
}.bind(this));
return <div>{featureNodes}</div>;
}
});
module.exports = FeatureList;