Really simple component that renders children elements when they enter the viewport.
npm install --save react-lazy-load
var React = require('react');
var LazyLoad = require('react-lazy-load')
// In your render
return (
<LazyLoad>
<div>some content</div>
</LazyLoad>;
)
This is used to set the elements height even when it contains no content.
<LazyLoad height='100px'>
<div>some content</div>
</LazyLoad>;