JSFiddle - React, Tailwind, and code Playground

by karthick Chandran

HTML

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<div>

</div>

JavaScript

var myArray = ["one", "two","three"];
myArray.forEach(function(myArraysObj) {
  var text = $('<div></div>').addClass('text').text(myArraysObj.text);
  $('body').append(text);
  };