JSFiddle - React, Tailwind, and code Playground

HTML

<script src="dataTables"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.19/js/jquery.dataTables.min.js"></script>
<table id="test">
  <thead>
    <tr>
      <th>test</th>
    </tr>
  </thead>
  <tbody></tbody>
</table>

JavaScript

$('#test').DataTable({
		  processing: true,
		  serverSide: true,
		  ajax: "?test",
		});

window.onerror = function(message, source, lineno, colno, error) {
    console.log("message: " + message);
    console.log("source: " + source);
    console.log("lineno: " + lineno);
}