init basic tictactoe game

This commit is contained in:
2025-11-27 16:26:51 +05:30
commit c6c9d10476
13 changed files with 4251 additions and 0 deletions

11
src/tictactoe/Board.tsx Normal file
View File

@@ -0,0 +1,11 @@
import Square from "./Square";
export default function Board({ squares, onClick }) {
return (
<div className="board">
{squares.map((value, i) => (
<Square key={i} value={value} onClick={() => onClick(i)} />
))}
</div>
);
}