JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
  <head>
    


    <link href="https://nightly.datatables.net/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
    <script src="https://nightly.datatables.net/js/jquery.dataTables.js"></script>
    
    <link href="https://nightly.datatables.net/colreorder/css/colReorder.dataTables.css?_=b5e1f72100ce548dc8ad3fd6e4211bad.css" rel="stylesheet" type="text/css" />
    <script src="https://nightly.datatables.net/colreorder/js/dataTables.colReorder.js?_=b5e1f72100ce548dc8ad3fd6e4211bad"></script>

    <meta charset=utf-8 />
    <title>DataTables - JS Bin</title>
  </head>
  <body>
    <div class="container">
      <table id="example" class="display nowrap" width="100%">
        <thead>
          <tr>
            <th>Name</th>
            <th>Position</th>
            <th>Office</th>
            <th>Age</th>
            <th>Start date</th>
            <th>Salary</th>
          </tr>
        </thead>

      </table>
    </div>
  </body>
</html>

JavaScript

$(document).ready( function () {
  var table = $('#example').DataTable({
    colReorder: true,
    serverSide: true,
    ajax: "https://datatables.net/examples/server_side/scripts/server_processing.php",
    columns: [
      { "data": "Name", "orderData": 3 },
      { "data": "Position", "orderData": 4 },
      { "data": "Office", "orderData": 7 },
      { "data": "Age", "orderData": 8 },
      { "data": "StartDate", "orderData": 22 },
      { "data": "Salary", "orderData": 9 },
    ]
 });
});