Skip to content

Commit a081f1f

Browse files
committed
"update src/component"
1 parent c1d0814 commit a081f1f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/animation.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ declare global {
1515
}
1616

1717
export default function MatterSimulation(){
18-
const canvasRef = useRef(null);
18+
const canvasRef = useRef<HTMLCanvasElement | null>(null); // Tentukan tipe ref
19+
1920

2021
useEffect(() => {
2122

0 commit comments

Comments
 (0)