Package Exports
- react-lazy-load
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-lazy-load) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Lazy Load Component
Really simple component that renders children elements when they enter the viewport.
Install
npm install --save react-lazy-load
Usage
var React = require('react');
var LazyLoad = require('react-lazy-load')
// In your render
return (
<LazyLoad>
<div>some content</div>
</LazyLoad>;
)
Props
height="String"
This is used to set the elements height even when it contains no content.
<LazyLoad height='100px'>
<div>some content</div>
</LazyLoad>;