JSFiddle - React, Tailwind, and code Playground

by cchana

HTML

<div id="output">

</div>

JavaScript

var test = {
	test: {
		key1: "likes",
    key2: "descending"
	}
},
textoutput = "";


for(var key in test.test) {
	textoutput += "<"+key+">"+test.test[key]+"</"+key+">";
}
console.log(textoutput);

output.innerHTML = textoutput;