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 f278122 commit 9c03406Copy full SHA for 9c03406
src/App.js
@@ -1,4 +1,5 @@
1
import CostDisplay from './components/CostDisplay/CostDisplay';
2
+import NumericDisplay from './components/NumericDisplay/NumericDisplay';
3
import './App.css';
4
import { useState, useEffect } from 'react';
5
function App() {
@@ -70,7 +71,10 @@ function App() {
70
71
<p>Click the button to add points!</p>
72
{/*display current points value*/}
73
<p>
- Points: <div id="points-display">{points}</div>
74
+ Points:{" "}
75
+ <div id="points-display">
76
+ <NumericDisplay value={points} />
77
+ </div>
78
</p>
79
{/*increase points from clicking a button*/}
80
<button onClick={() => addPointsFromClick()}>Click to Add Points</button>
0 commit comments