JSFiddle - React, Tailwind, and code Playground
JavaScript
var obj = {
src: 'img.jpg',
title: 'foo'
};
alert($('<img/>', obj).get(0).outerHTML);
var obj = {
src: 'img.jpg',
title: 'foo'
};
alert($('<img/>', obj).get(0).outerHTML);