JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<body>
GDH example :
<br><br>
</body>
</html>
JavaScript
var Example = {};
(function () {
var itemList = [];
Example.AddCustomItem = function(item){
//do something.. example:
var div = $("body");
div.append('<div id="example div">Id: ' + item.id + '</br>'
+ 'Name: ' + item.name + '</br>'
+ 'Category: ' + item.category + '</br>'
+ '</div>');
itemList.push(item);
}
var runCode = function(){
Example.AddCustomItem({
id : "MultiPlatformOptimized",
name : "Multi-Platform optimized",
category: "Level Design"
});
}
runCode();
})();