I am loading data from JSON and want to display it on the site. Needless to say, each data section should have its own space e.g., div, etc.
My question: is there better way how to put this data on web then creating new div and then appending it to the container for each data section?
e.g
var div = document.createElement("div");
div.onclick = doSomething;
var p = document.createElement("p");
p.innerHTML = json_response[0].name;
div.appendChild(p);
document.body.appendChild(p)
Wouldn't this be too slow for the vast amount of data? Is there a more valid way?