JSFiddle - React, Tailwind, and code Playground

by Alexis López Espinoza

HTML

<section id="code"></section>

JavaScript

var thecode = "",
	number = 18,
	i = 1,
	open = "&lt;div&gt;", //Apertura de etiqueta
	close = "&lt;/div&gt;<br />"; //Cierre de etiqueta (con salto de línea)

while (i <= number){
	thecode += open + i + close;
	i++;
}

$('#code').html(thecode);