JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" value="Add" />
<table class="dataTable" style="width: 100%;" id="tblSection1">
  <thead>
    <tr>
      <th>Header 1</th>
      <th>Header 2</th>
      <th>Header 3</th>
      <th>Header 4</th>
    </tr>
  </thead>

</table>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.21/css/jquery.dataTables.min.css"/>
 
<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.10.21/js/jquery.dataTables.min.js"></script>

JavaScript

var table = $('#tblSection1').DataTable();

var data = ['<td><input type="text" /></td>',
      '<td><input type="text" /></td>',
      '<td><input type="text" /></td>',
      '<td><select>' +
      '<option>This</option>' +
      '<option>That</option>'+
      '</select></td>']
      
$('input[type=button]').on('click', function () {
	table.row.add( data ).draw();
})