We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59743b0 commit 745b9d8Copy full SHA for 745b9d8
src/App.js
@@ -16,6 +16,8 @@ function App() {
16
//increase points every second
17
setPoints(points + pointsPerSecond); //increase points by points per second
18
setSeconds(seconds + 1); //add 1 second
19
+ updateClickers(); //update clickers value
20
+ updateAutoClickers(); //update auto clickers value
21
}, 1000);
22
return () => {
23
clearInterval(interval); //clear interval when component unmounts
@@ -41,7 +43,6 @@ function App() {
41
43
}
42
44
function addPointsFromClick() {
45
//add points from clicking a button
- updateClickers(); //update clickers value
46
setPoints(points + clickMultiplier); //increase points by 1 when button clicked
47
setClicks(clicks + 1); //increase clicks made by 1
48
0 commit comments