JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://cdn.datatables.net/v/bs4/dt-1.10.16/datatables.min.css">
<script src="https://cdn.datatables.net/v/bs4/dt-1.10.16/datatables.min.js"></script>
<body>
  <table>
    <table id="table" class="table table-sm table-striped table-bordered">
      <thead>
        <tr>
          <th colspan="2">TH no problem</th>
          <th rowspan="2">TH rawspan=2</th>
        </tr>
        <tr>
          <th>TH no problem</th>
          <th class="text-danger">TH with no border-right :'(</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>data</td>
          <td>data</td>
          <td>data</td>
        </tr>
        <tr>
          <td>data</td>
          <td>data</td>
          <td>data</td>
        </tr>
      </tbody>
    </table>
  </table>

</body>

CSS

table.dataTable {
    border-spacing: 0;
}

JavaScript

$(document).ready(function() {
  $('#table').DataTable();
});