Created
September 21, 2017 19:24
-
-
Save aganglada/812781ba6ff0601022eb79eb4db6eb3c to your computer and use it in GitHub Desktop.
Revisions
-
aganglada created this gist
Sep 21, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ const img = new Image() img.src = this.props.src img.onload = this.onLoadImage img.onerror = this.onLoadImageError