diff --git a/src/TicTacToe/Root.tsx b/src/TicTacToe/Root.tsx index 472c86e..406907e 100644 --- a/src/TicTacToe/Root.tsx +++ b/src/TicTacToe/Root.tsx @@ -104,7 +104,7 @@ function TicTacToe() { const callback = () => { playTurn(index); }; - return ; + return ; })} @@ -112,21 +112,21 @@ function TicTacToe() { } interface CellProps { - getState: () => number; + state: number; callback: () => void; } -function TicTacToeCell({ getState, callback }: CellProps) { +function TicTacToeCell({ state, callback }: CellProps) { function handleClick() { callback(); } return (
-

{getStateChar(getState())}

+

{getStateChar(state)}

); }