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 acea204 commit 098e531Copy full SHA for 098e531
src/App.js
@@ -1,5 +1,5 @@
1
-import './App.css';
2
-import { useState } from 'react';
+import "./App.css";
+import { useState } from "react";
3
function App() {
4
//app compoment
5
const [points, setPoints] = useState(0); //set initial points to 0
@@ -33,7 +33,11 @@ function App() {
33
{/*increase points from clicking a button*/}
34
<button onClick={() => addPointsFromClick()}>Click to Add Points</button>
35
{/*upgrade clicker button*/}
36
- <button onClick={() => upgradeClicker()}>Upgrade Clicker</button>
+ <button onClick={() => upgradeClicker()}>
37
+ Upgrade Clicker
38
+ <br />
39
+ Cost: {10 * Math.pow(2, clickMultiplier - 1)}
40
+ </button>
41
</div>
42
);
43
}
0 commit comments