I am trying to keep an image from reloading when the state changes.
The below image variable is passed into the props of a custom react component.
var img = new Image();
I think what you're trying to do is create a new DOMNode of the Image variety and render that as a child of the Option 1 (Best): Render the image tag in your React component template Option 2 (Not as good): Render the image as an HTML string entity Hope that helps!render: function() {
return (
renderHTML: function() {
return {
__html : ''
}
},
render: function() {
return (
);
}