Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 698 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 698 Bytes

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.
`import { ImageComponent } from 'image-component-react'`

Example

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