Skip to content

LeeHyungGeun/omi-lazyload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

omi-lazyload

Simple Lazyload Library for Omi

Install

npm install omi-lazyload

Usage

import  { render, define, WeElement } from 'omi'
import 'omi-lazyload'

define('my-app', class extends WeElement {
  render() {
    return (
      <div class="main">
        <omi-lazyload>
          <img src="https://github.com/Tencent/omi/blob/master/assets/omi-logo.svg" />
        </omi-lazyload>
      </div>
    )
  }
})

render(<my-app />, 'body')

License

MIT © LeeHyungGeun

About

Omi LazyLoad. Simple LazyLoad image / iframe.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published