twobin / react-lazyload

Lazy load your component, image or anything matters the performance.
MIT License
5.86k stars 488 forks source link

Ability to use custom element wrapper type and custom render method #317

Open arturchyzy opened 4 years ago

arturchyzy commented 4 years ago

Add a possibility to use custom element type for wrapper (like tr and other - not only div). I also added custom property for custom render method for more flexibility. You need to know what you're doing but it provides a lot of options. Tests added. README updated. Examples updated.