JSFiddle - React, Tailwind, and code Playground

by Lalji Tadhani

HTML

<script src="https://code.jquery.com/jquery-3.4.1.slim.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.css">
<div class="container">
      <div class="row">
        <div class="col-md-12" style="text-align: center">
          <h3 class="mainimg">Tic Tac Toe Game</h3>
        </div>
      </div>
      <div class="row bg-white">
        <div class="col-md-4">
        <table class="table">
          <tbody>
            <tr>
              <th>
                <button class="btn" id="newGame">🔄 New game</button>
              </th>
            </tr>
            <tr>
              <th>2</th>
            </tr>
            <tr>
              <th>
                <h2 class="player1Turn hidden">Player 1 Turn</h2>
                <h2 class="player2Turn hidden">Player 2 Turn</h2>
              </th>
            </tr>
          </tbody>
        </table>
        </div>
        <div class="col-md-8">
          <table>
            <tr>
              <td class="grid">7<img src="X.jpg"></td>
              <td class="vert grid">8<img src="O.jpg"></td>
              <td class="grid">9<img src="X.jpg"></td>
            </tr>
            <tr>
              <td class="hori grid">4<img src="O.jpg"></td>
              <td class="vert hori grid">5<img src="X.jpg"></td>
              <td class="hori grid">6<img src="O.jpg"></td>
            </tr>
            <tr>
              <td class="grid">1<img src="X.jpg"></td>
              <td class="vert grid">2<img src="O.jpg"></td>
              <td class="grid">3<img src="X.jpg"></td>
            </tr>
          </table>
        </div>
      </div>
    </div>