@dcasia/react-lazy-load-image-component-improved
Version:
React Component to lazy load images using a HOC to track window scroll position.
17 lines (12 loc) • 397 B
JSX
import React from 'react';
import PlaceholderWithoutTracking from './PlaceholderWithoutTracking.jsx';
import trackWindowScroll from '../hoc/trackWindowScroll.js';
class PlaceholderWithTracking extends React.Component {
constructor(props) {
super(props);
}
render() {
return <PlaceholderWithoutTracking {...this.props} />;
}
}
export default trackWindowScroll(PlaceholderWithTracking);