JSFiddle - React, Tailwind, and code Playground

HTML

<link rel="stylesheet" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/buttons/1.6.0/css/buttons.dataTables.min.css">

<script src="https://code.jquery.com/jquery-3.3.1.js"></script>
<script src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.6.0/js/dataTables.buttons.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.6.0/js/buttons.flash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.53/vfs_fonts.js"></script>
<script src="https://cdn.datatables.net/buttons/1.6.0/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.6.0/js/buttons.print.min.js"></script>

<table id="example" class="display nowrap" style="width:100%">
<thead> 
<tr> 
<th>الاسم</th> 
<th>الوظيفة</th> 
<th>المكتب</th> 
<th>العمر</th> 
<th>بداية التاريخ</th> 
<th>الراتب</th> 
</tr> 
</thead> 

<tbody> 
<tr> 
<td>محمد فتحي</td> 
<td>مهندس أنظمة</td> 
<td>ايدنبرغ</td> 
<td>61</td> 
<td>2011/04/25</td> 
<td>$320,800</td> 
</tr>  
</tbody> 
<tfoot> 
<tr> 
<th>الاسم</th> 
<th>الوظيفة</th> 
<th>المكتب</th> 
<th>العمر</th> 
<th>بداية التاريخ</th> 
<th>الراتب</th> 
</tr> 
</tfoot> </table>

JavaScript

$('#example').DataTable( {
  dom: 'Bfrtip',
  buttons: [
  'copy', 'csv', 'excel', 'pdf', 'print'
  ]
} );