Skip to content

Commit a20fdef

Browse files
committed
Add paragraph element for points display
1 parent 2fb66ca commit a20fdef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/App.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@ function App() {
1818
Endless Simple Idle Game
1919
</header>
2020
<p>Click the button to add points!</p>
21-
{/*display current points value*/}Points:{" "}
22-
<div id="points-display">{points}</div>
23-
<br />
21+
{/*display current points value*/}
22+
<p>
23+
Points: <div id="points-display">{points}</div>
24+
</p>
2425
{/*increase points from clicking a button*/}
2526
<button onClick={() => addPointsFromClick()}>Click to Add Points</button>
2627
</div>

0 commit comments

Comments
 (0)