Aljullu / react-lazy-load-image-component

React Component to lazy load images and components using a HOC to track window scroll position.
https://www.npmjs.com/package/react-lazy-load-image-component
MIT License
1.46k stars 110 forks source link

Update peer dependencies to allow react v17 #84

Closed ebual closed 4 years ago

ebual commented 4 years ago

Installing react-lazy-load-image-component in a React v17 based project produces the following warnings:

warning " > react-lazy-load-image-component@1.5.0" has incorrect peer dependency "react@^15.x.x || ^16.x.x".
warning " > react-lazy-load-image-component@1.5.0" has incorrect peer dependency "react-dom@^15.x.x || ^16.x.x".

Since the react dev team postponed breaking changes to React v18 it is safe to update the peer dependencies.

Aljullu commented 4 years ago

Thanks for the contribution @ebual, LGTM.