beekai-oss / react-simple-img

🌅 React lazy load images with IntersectionObserver API and Priority Hints
MIT License
989 stars 41 forks source link

Feature/global init with hoc #11

Closed bluebill1049 closed 6 years ago

bluebill1049 commented 6 years ago

image

bluebill1049 commented 6 years ago

Thanks @yusinto for reviewing! ❤️

yusinto commented 6 years ago

The example is broken. I tried npm start and I get:

./src/App.js
Module not found: Can't resolve './src/index'
bluebill1049 commented 6 years ago

@yusinto example is not ready, i haven't published the code. will do that after all code gets clean up.

bluebill1049 commented 6 years ago

@yusinto can't break in the for loop, because there could be more than 1 images in the viewport