React-Img-Preloader
A Image preloader for React, aims for making image preloading dead-simple and easing the task of showing a running progress bar
Install 💡
npm install react-img-preloader --save
How To Use 🥊
// gather up all images you want for preload in an arrayvar images = // ... more goes here <ImgPreloader imgs=images onComplete= { console}> <div>imgages planned for preload: total; images have been preloaded: loaded</div> </ImgPreloader>