React component for adding place holder images into your app
Installation:
npm i --save react-placeimg
Usage:
import PlaceImg from "react-placeimg";
<PlaceImg
width="800"
height="600"
category=""
filter="grayscale"
onLoad={()=>console.log("Image loaded successfully")}
/>
- width : Integer in CSS pixels (e.g., 300)
- height : Integer in CSS pixels
- category : Any one of this
animals,arch,nature,people,tech
- filter : Any one of this
grayscale,sepia
onLoad
: Event listener fired after image loaded