This package allows you to display a placeholder image while the actual background image loads
npm install react-background-image-loadernpm install react-background-image-loader --saveIn order to build / modify the component locally just run npm watch.
javascript
import React from 'react';
import BackgroundImage from 'react-background-image-loader'; export default (props) => {
const {source, ...otherProps} = props;
const localImage = '/path/to/local/asset';
return(
Some more markup
);
}
``MIT License