JSFiddle - React, Tailwind, and code Playground
by tea4two
HTML
menus:
<ul>
<script type="text/javascript">
var menus = {
'home.html': 'HOME',
'company.html': 'COMPANY',
'product.html': 'PRODUCT',
'contact.html': 'CONTACT'
};
for(var i in menus) {
document.write('<li><a href="' + i + '" title="' + i + '">' + menus[i] + '</a></li>\n');
}
</script>
</ul>