Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

random image url

	const [imageStatus, setImageStatus] = useState("");
    
	const handleImageLoaded = () => {
		setImageStatus(true)
	}
    
    const handleImageErrored = () => {
      setImageStatus(false)
      thumbUrl = "https://picsum.photos/200/300"
    }
 
PREVIOUS NEXT
Tagged: #random #image #url
ADD COMMENT
Topic
Name
8+7 =