Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render: function() {
return (
React.DOM.ul( {className:"List"},
this.state.data.map(function(item, index) {
var itemComponent = Fresh.getComponentByName(item.component);
return React.DOM.li( {key:index}, itemComponent(_.clone(item)))
})
)
);
}
});
render: function() {
return (
React.DOM.div(null, this.state.data.name)
);
}
});