Really simple image component that renders itself deferred.
npm install --save react-defer-image
import React from "react";
import DeferImage from "react-defer-image";
return (
<DeferImage
src="image.png"
emptySrc="spinner.gif"/>
);
Url to image.
Url to image used to render when loading.
Thanks to loktar00 / react-lazy-load for inspiration.