0.0.7 • Published 10 years ago

react-defer-image v0.0.7

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

react-defer-image

Really simple image component that renders itself deferred.

Install

npm install --save react-defer-image

Usage

import React from "react";
import DeferImage from "react-defer-image";

return (
    <DeferImage
      src="image.png"
      emptySrc="spinner.gif"/>
);

Props

src="String" [required]

Url to image.

emptySrc="String" [optional]

Url to image used to render when loading.

Attributions

Thanks to loktar00 / react-lazy-load for inspiration.

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago