Created
June 18, 2022 14:34
-
-
Save Otto-Vector/bde476eb394d51733494df730f252811 to your computer and use it in GitHub Desktop.
onErrorImageHandlerChange
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<img className={ styles.shippersConsigneesForm__mapImage } | |
src={ 'тут картинка, которая иногда не загружается' } | |
onError={ ( { currentTarget } ) => { | |
currentTarget.onerror = null; // prevents looping | |
currentTarget.src = mapImage // картинка, которая ТОЧНО есть | |
} } | |
alt="map"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment