React Cool Image

动画友好的图片组件,支持懒加载、默认图片显示、错误回退GithubNpm

1. 运行命令:
Yarn
Npm
yarn add react-cool-image
2. 使用组件
import Image from 'react-cool-image'
import 'react-cool-image/dist/style.scss'
const App = () => <Image width={300} height={100} src="https://xxx.png" />
3. 效果展示