inteface because pycharm doesn't like untyped function args

This commit is contained in:
2025-11-28 14:08:30 +05:30
parent 6179021ce7
commit 632fa1104e

View File

@@ -1,4 +1,9 @@
export default function Square({ value, onClick }) { interface SquareProps {
value: string;
onClick: () => void;
}
export default function Square({ value, onClick } : SquareProps) {
return ( return (
<button className="square" onClick={onClick}> <button className="square" onClick={onClick}>
{value} {value}