-
-
Save hanford/1953c706a71e8065c31df50737cf60d0 to your computer and use it in GitHub Desktop.
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
this.state = { | |
isImgLoaded: false | |
} | |
const img = document.createElement('img') | |
img.onload = () => this.setState({ | |
isImgLoaded: true | |
}) | |
img.src = nonBlurry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment