JSFiddle - React, Tailwind, and code Playground

HTML

<button id='addrow'>Добавить строку</button>
<button id='saveTd'>Сохранить</button>
<table id="table">

CSS

.active{
    color:white;
    background:red;
}
#table td {
 width:50px;
 border: 2px solid black;
}

JavaScript

Table=new Object;
    Table={
        fields={1,2,3};
        rows: 5;
        meta: {
        cellHeader: blue;
        evenLine: white;
        oddLine: gray;
    }
        function draw(){
        var content = '';
        }
        function add_row(){
        alert("addrow");
        }
        function get_data(){
        alert("get_data()");
        }
    };