JSFiddle - React, Tailwind, and code Playground

by RoryMcCrossan

HTML

<link rel="stylesheet" href="https://cdn.datatables.net/1.7.5/css/demo_table.css">
<link rel="stylesheet" href="https://cdn.datatables.net/1.7.5/css/demo_table_jui.css">
<script src="https://cdn.datatables.net/1.7.5/js/jquery.dataTables.min.js"></script>
<table id="myTable">
    <thead>
        <tr>
            <th>Header</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>data</td>
        </tr>
    </tbody>
</table>

JavaScript

$(document).ready(function(){
    $('#myTable').dataTable();

    
});