We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c28b13 commit fbf1278Copy full SHA for fbf1278
moving-box-link/finished/src/App.js
@@ -20,7 +20,7 @@ export default function App() {
20
// move the box if x or y changes
21
useEffect(() => {
22
const context = canvasRef.current.getContext('2d');
23
- context.clearRect(0, 0, window.innerHeight, window.innerWidth);
+ context.clearRect(0, 0, window.innerWidth, window.innerHeight);
24
// context.fillRect(x, y, 100, 100);
25
26
let theLinkRef;
0 commit comments