you can now play with number of items to add
This commit is contained in:
@@ -8,11 +8,11 @@ var Traits = React.createClass({
|
||||
for(var traitKey in traits ) {
|
||||
if(traits.hasOwnProperty(traitKey)) {
|
||||
var traitValue = this.props.traits[traitKey];
|
||||
traitsPresentation.push( <div className="single_trait">{traitKey}: {traitValue}</div> );
|
||||
traitsPresentation.push( <div key={traitKey} className="single_trait">{traitKey}: {traitValue}</div> );
|
||||
}
|
||||
}
|
||||
|
||||
console.log(traitsPresentation);
|
||||
|
||||
return (
|
||||
<div className="row-fluid">
|
||||
<div className="span12">
|
||||
|
||||
Reference in New Issue
Block a user