A clean, minimal Tic Tac Toe game built with React + JavaScript.
- 3x3 board
- Two players: X and O
- Automatic win detection
- Draw detection
- Reset game functionality
- Install dependencies:
npm install- Run development server:
npm run dev- Open your browser to the URL shown (typically http://localhost:5173)
- App.jsx → Owns game state (board, current player), handles game logic
- Board.jsx → Renders the 3x3 grid, passes callbacks to squares
- Square.jsx → Single square button (fully controlled via props)
- Click any empty square to place your mark (X or O)
- Players alternate turns automatically
- Game detects winner or draw
- Click "Reset Game" to start over