react-remote-image
Image component with declarative state control. Just like Relay.
Installation
npm install react-remote-image --save
Usage
ReactDOM;
Advanced usage
ReactDOM
Fading
{ superprops context thisstate = isLoaded: false } { const isLoaded = thisstate const imageClass = isLoaded ? 'image image-loaded' : 'image' return <RemoteImage src="http://funpeep.com/wp-content/uploads/2014/04/cute-cat-cats-hd-wallpaper.jpg" renderLoading= <div className="image--loading"> Loading... </div> renderFetched= <img src=src className=imageClass /> onLoad= this alt="Meow meow cat" /> }