title: How to use if within a map return?
body: <p>I need to generate diffrent reactJS code based on datamodel but I get </p>
  
  <blockquote>
    <p>In file "~/Scripts/Grid.jsx": Parse Error: Line 13: Unexpected token
    if (at line 13 column 15) Line: 52 Column:3</p>
  </blockquote>
  
  <p>With this code</p>
  
  <pre><code>var GridRow = React.createClass({
      render: function() {
          var row;
  
          row = this.props.cells.map(function(cell, i) {
              return (
                  if(cell.URL != null &amp;&amp; cell.URL.length &gt; 0){
                      &lt;td className={cell.Meta.HTMLClass} key={i}&gt;{cell.Text}&lt;/td&gt;        
                  }
                  else {
                      &lt;td className={cell.Meta.HTMLClass} key={i}&gt;{cell.Text}&lt;/td&gt;
                  }
              );
          }.bind(this));
  
          return (
              &lt;tr&gt;
                  {row}
              &lt;/tr&gt;
          );
      }
  });
  </code></pre>
  
  <p>The render part seems to be really limited in how it can be used?</p>