title: Infinite scrolling with React JS
body: <p>I am looking at ways to implement infinite scrolling with React. I have come across <a href="https://github.com/guillaumervls/react-infinite-scroll">react-infinite-scroll</a> and found it inefficient as it just adds nodes to the DOM and doesn't remove them. Is there any proven solution with React which will add, remove and maintains constant number of nodes in the DOM.</p>
  
  <p>Here is the <a href="http://jsfiddle.net/rajeevprasanna/d24HR/41/">jsfiddle</a> problem.
  In this problem, i want to have only 50 elements in the DOM at a time. others should be loaded and removed as user scrolls up and down.
      We have started using React because of it's optimization algorithms. Now i couldn't find solution to this problem. I have come across <a href="http://airbnb.github.io/infinity/">airbnb infinite js</a>. But it is implemented with Jquery. To use this airbnb infinite scroll, i have to loose the React optimisation which i don't want to do.</p>
  
  <p>sample code i want to add scroll is(here i am loading all items. My goal is to load only 50 items at a time)</p>
  
  <pre><code>/** @jsx React.DOM */
  
  var Hello = React.createClass({
      render: function() {
          return (&lt;li&gt;Hello {this.props.name}&lt;/li&gt;);
      }
  });
  
  var HelloList = React.createClass({ 
       getInitialState: function() {                            
           var numbers =  [];
           for(var i=1;i&lt;10000;i++){
               numbers.push(i);
           }
           return {data:numbers};
       },
  
      render: function(){
         var response =  this.state.data.map(function(contact){          
            return (&lt;Hello name="World"&gt;&lt;/Hello&gt;);
          });
  
          return (&lt;ul&gt;{response}&lt;/ul&gt;)
      }
  });
  
  React.renderComponent(&lt;HelloList/&gt;, document.getElementById('content'));
  </code></pre>
  
  <p>Looking for help...</p>