title: For loop in react render method
body: <p>I want create paging link for my grid.I pass maxPages(number) property to component but i cant use for in render method. What can i do ?</p>
  
  <pre><code>var Pagination = React.createClass({
  
  render: function(){
  
  
      return(
      &lt;div class="text-center"&gt;
          &lt;ul class="pagination"&gt;
  
              &lt;li&gt;&lt;a href="#"&gt;«&lt;/a&gt;&lt;/li&gt;
              {for (var i=0;i &lt;10;i++;)
              {
                return( &lt;li&gt;&lt;a href="#"&gt;i + 1 &lt;/a&gt;&lt;/li&gt;);
              }
              }
  
              &lt;li&gt;&lt;a href="#"&gt;»&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;);
  
  }});
  </code></pre>