I need to generate diffrent reactJS code based on datamodel but I get
In file \"~/Scripts/Grid.jsx\": Parse Error: Line 13: Unexpected token if (at lin
You put return statement inside if clause like so:
return
if
row = this.props.cells.map(function(cell, i) { if(cell.URL != null && cell.URL.length > 0){ return {cell.Text}; } else { return {cell.Text}; } }.bind(this));