var React = require('react'); var Traits = React.createClass({ render: function() { var traitsPresentation = []; var traits = (this.props.traits || {}); for(var traitKey in traits ) { if(traits.hasOwnProperty(traitKey)) { var traitValue = this.props.traits[traitKey]; traitsPresentation.push(
{traitKey}: {traitValue}
); } } return (
{traitsPresentation}
); } }); module.exports = Traits;