Skip to content

Commit 32cedd6

Browse files
committed
Add points per click and points per second display
1 parent e4e05fc commit 32cedd6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/App.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,20 @@ function App() {
8080
<NumericDisplay value={points} />
8181
</span>
8282
</p>
83+
{/*display points per click value*/}
84+
<p>
85+
Points per click:{" "}
86+
<span id="points-display">
87+
<NumericDisplay value={clickMultiplier} />
88+
</span>
89+
</p>
90+
{/*display points per second value*/}
91+
<p>
92+
Points per second:{" "}
93+
<span id="points-display">
94+
<NumericDisplay value={pointsPerSecond} />
95+
</span>
96+
</p>
8397
{/*increase points from clicking a button*/}
8498
<button onClick={() => addPointsFromClick()}>Click to Add Points</button>
8599
<br />

0 commit comments

Comments
 (0)