react-mobile-lazyload

A React components named Lazyload, used in the mobile webpage.

Usage no npm install needed!

<script type="module">
  import reactMobileLazyload from 'https://cdn.skypack.dev/react-mobile-lazyload';
</script>

README

react-mobile-lazyload

A React components named Lazyload, used in the mobile webpage.

Usage

<LazyLoad partial placeholder={(<img src="" />)}>
    <img src=".." />
</LazyLoad>

Preview

点击查看demo

Options

placeholder

Type: React.node

Default value: <div>

Note: placehoder element.

partial

Type: React.bool

Default value: false

License

Copyright (c) 2016 Cao Ren under the MIT License.