JSFiddle - React, Tailwind, and code Playground JavaScript var div = $("<div />") $(div).data("foo", "bar") console.log($(div)[0].outerHTML)