JSFiddle - React, Tailwind, and code Playground

by BaliBalo

HTML

<div id="field"></div>

CSS

#field
{
    /*You can change the size of the field here*/
    width: 500px;
    height: 500px;
    /*Prevent white-spaces to be inserted*/
    font-size: 0;
}
#field > div
{
    /*Reset font-size*/
    font-size: 1rem;
    display: inline-block;
    width: 10%;
    height: 10%;
    /*Allows to use borders*/
    box-sizing: border-box;
    border: 1px solid #000;
}

JavaScript

var field = document.getElementById('field');
for(var i = 0; i < 100; i++)
    field.appendChild(document.createElement('div'));