JSFiddle - React, Tailwind, and code Playground

by Ronald Gouldner

HTML

<!DOCTYPE html>
<html>
  <head>
    <link href="https://nightly.datatables.net/css/jquery.dataTables.css" rel="stylesheet" type="text/css" />
    <script src="https://code.jquery.com/jquery-3.5.1.js"></script>
    <script src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></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>

        <tfoot>
          <tr>
            <th>Name</th>
            <th>Position</th>
            <th>Office</th>
            <th>Age</th>
            <th>Start date</th>
            <th>Salary</th>
          </tr>
        </tfoot>
        <tbody>
        </tbody>
      </table>
    </div>
  </body>
</html>

CSS

body {
  font: 90%/1.45em "Helvetica Neue", HelveticaNeue, Verdana, Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  background-color: #fff;
}

JavaScript

$(document).ready( function () {
var data = [
  {
    "name": "Tiger Nixon",
    "position": "System Architect",
    "office": "Edinburgh",
    "age": "61",
    "start_date": "2011/04/25",
    "salary": "$320,800"
		},
  {
    "name": "Garrett Winters",
    "position": "Accountant",
    "office": "Tokyo",
    "age": "63",
    "start_date": "2011/07/25",
    "salary": "$170,750"
		},
  {
    "name": "Ashton Cox",
    "position": "Junior Technical Author",
    "office": "San Francisco",
    "age": "66",
    "start_date": "2009/01/12",
    "salary": "$86,000"
		},
  {
    "name": "Cedric Kelly",
    "position": "Senior Javascript Developer",
    "office": "Edinburgh",
    "age": "22",
    "start_date": "2012/03/29",
    "salary": "$433,060"
		},
  {
    "name": "Airi Satou",
    "position": "Accountant",
    "office": "Tokyo",
    "age": "33",
    "start_date": "2008/11/28",
    "salary": "$162,700"
		},
  {
    "name": "Brielle Williamson",
    "position": "Integration Specialist",
    "office": "New York",
    "age": "61",
    "start_date": "2012/12/02",
    "salary": "$372,000"
		},
  {
    "name": "Herrod Chandler",
    "position": "Sales Assistant",
    "office": "San Francisco",
    "age": "59",
    "start_date": "2012/08/06",
    "salary": "$137,500"
		},
  {
    "name": "Rhona Davidson",
    "position": "Integration Specialist",
    "office": "Tokyo",
    "age": "55",
    "start_date": "2010/10/14",
    "salary": "$327,900"
		},
  {
    "name": "Colleen Hurst",
    "position": "Javascript Developer",
    "office": "San Francisco",
    "age": "39",
    "start_date": "2009/09/15",
    "salary": "$205,500"
		},
  {
    "name": "Sonya Frost",
    "position": "Software Engineer",
    "office": "Edinburgh",
    "age": "23",
    "start_date": "2008/12/13",
    "salary": "$103,600"
		},
  {
    "name": "Jena Gaines",
    "position": "Office Manager",
    "office": "London",
    "age": "30",
    "start_date": "2008/12/19",
    "salary": "$90,560"
		},
  {
    "name":...