This will add new properties that can be set to ImageZoom to better handle errors.
errorContent: Accepts string , JSX element or React component and will be rendered in place of the ImageZoom component when the image fails to load. This will default to default the following component:
onError: Callback called when the image fails to load and the error object gets passed onto it.
This will add new properties that can be set to
ImageZoom
to better handle errors.errorContent
: Accepts string , JSX element or React component and will be rendered in place of theImageZoom
component when the image fails to load. This will default to default the following component:onError
: Callback called when the image fails to load and the error object gets passed onto it.All of this work is backwards compatible.