JSFiddle - React, Tailwind, and code Playground

HTML

<table id="fruitTable">

</table>

JavaScript

var jsonFruit = {
  "apples": "12",
  "bananas": "8",
  "watermelon": "3"
}
$.each(jsonFruit, function(key, value) {
	console.log(key, value);
  $('<tr><td>' + key + '</td><td>' + value + '</td></tr>').appendTo('#fruitTable');
});
console.log($('#fruitTable'));