1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

adding required key to child elements

This commit is contained in:
ivaosthu 2014-11-02 21:06:32 +01:00 committed by Ivar Conradi Østhus
parent 07523973cb
commit d88e9abcea

View File

@ -8,7 +8,7 @@ var StrategyList = React.createClass({
render: function() {
var strategyNodes = this.props.strategies.map(function(strategy) {
return <Strategy strategy={strategy} />;
return <Strategy strategy={strategy} key={strategy.name} />;
});
return (
<div>{strategyNodes}</div>