npm

Check out our latest tech talk, "JavaScript Supply Chain Security" presented by VP of Security, Adam Baldwin.Watch it here »

image-component-react

0.1.0 • Public • Published

This component expects 2 image url

1) ImageUrl -> The src of the actual Image.
2) placeholderImageUrl -> src of the placeholder.

The placeholder image is a smaller (size) image, when the loading of the actual image is done, then the
placeholder image gets hidden and original image appears progressively.

To use this component

Just install the package and import the ImageComponent and render it with your src.

Example

  • Clone the repository git clone https://github.com/bandana147/image-component.git
  • Do npm install and then npm start
  • It will open up in http://localhost:3000

Keywords

none

install

npm i image-component-react

Downloadsweekly downloads

6

version

0.1.0

license

none

last publish

collaborators

  • avatar
Report a vulnerability