All upgrade are now named exports, so:
import Img from 'react-image'needs to be changed to:
import {Img} from 'react-image'This version requires a version of react that supports hook (16.8 or greater)
For users of the original react-image only: please note
props and behaviors changes for this release:
srcSet is not supportedonLoad & onError callbacks are
currently privatelazy has been removed from the core lib. To lazy load
your images, see the recipes section hereIf you have a need for any of these params, feel free to send a PR. You can also open an issue to discuss your use case.