Sha256: faeb207749f5116931ff5dd7fefd643293a7b8215f0e63d3df4c9fb51d3b0b83
Contents?: true
Size: 497 Bytes
Versions: 2
Compression:
Stored size: 497 Bytes
Contents
import React from 'react'; import createPageComponent from '../create_page_component.jsx'; import BackgroundImage from './background_image.jsx'; class LazyBackgroundImage extends React.Component { static contextTypes = { pageIsPreloaded: React.PropTypes.bool } constructor(props) { super(props); } render() { return ( <BackgroundImage {...this.props} loaded={this.context.pageIsPreloaded} /> ); } }; export default createPageComponent(LazyBackgroundImage);
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pageflow-react-0.1.1 | js/src/components/lazy_background_image.jsx |
pageflow-react-0.1.0 | js/src/components/lazy_background_image.jsx |