0.0.3-BETA03 • Published 5 years ago
knc-react-image v0.0.3-BETA03
knc-react-image
A simple react-library to lazy-load images
Usage
Add to your package like this:
npm install --save knc-react-image
Or using Yarn:
yarn add knc-react-image
Then in your component
import Image from 'knc-react-image';
const MyComp = () => {
const imgSrc=`https://picsum.photos/200/300`
return <Image src={imgSrc} />
}
Optional parameters
You can add the below optional params:
style
- the styles that you want on the resultant image (img
) tagwidth
- the width of the resultant imageheight
- the height of the resultant image
Peer dependency
Only, one: react
License
MIT.
About me
Here I am: https://knc.js.org
Twitter: @itsKNC
0.0.3-BETA03
5 years ago
0.0.3-BETA02
5 years ago
0.0.3-BETA01
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
1.0.1-beta03
5 years ago
1.0.1-beta02
5 years ago
1.0.1-beta01
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago