I need help iterating through an array of objects and rendering out the html. I currently use jQuery in the following way, but I want to know of a more industry-standard way of accomplishing this. Also, if the answer is angular or react, I am amenable.
arr_Pages.forEach(function( a) {
var $nav= $( "<div/>", {
id: 'nav-' + a.name,
class: 'nav',
html: a.nameNav,
});
$nav.appendTo($container);
});
Thanks in advance for your help!
Mike