Two-player 3x3 game with turns, win, and draw detection

Build a Tic-Tac-Toe game. Two players take turns marking squares on a 3×3 grid. The first player to get three of their marks in a row (horizontally, vertically, or diagonally) wins. If all 9 squares are filled and nobody has three in a row, the game is a draw. The official React Tic-Tac-Toe tutorial is a good warm-up before you build tic tac toe in React yourself.
<button> per square is the simplest choice.X or O.X clicks square 0 -> board: X . . / . . . / . . . status: Next Player: O
O clicks square 4 -> board: X . . / . O . / . . . status: Next Player: X
X clicks 1, O clicks 3, X clicks 2 -> top row is X X X status: Winner: X
The tests click your squares and read the text on the screen, like a real player would. You don’t need test ids, specific class names, or an exact HTML structure. They only check that:
<button> elements (in React, any element with an onClick also works).Next Player: X/O, Winner: X/O, or Draw. Capitalization and extra spacing don’t matter.