Skip to content

Commit

Permalink
refactor: rename Board component to Game
Browse files Browse the repository at this point in the history
Renamed the Board component to Game for better alignment with its functionality and purpose.
  • Loading branch information
RaulBecerraB committed Aug 28, 2024
1 parent d0bd061 commit d251633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useState } from 'react'

// in JS "export" means this function can be used outside this file
const Board = () =>
const Game = () =>
{
const [squares, setSquares] = useState(Array(9).fill(null));
const [xIsNext, setIsNext] = useState(true)
Expand Down Expand Up @@ -117,4 +117,4 @@ const calculateWinner = (squares) => {
return null;
}

export default Board
export default Game

0 comments on commit d251633

Please sign in to comment.