We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d81e223 commit 01d7ec8Copy full SHA for 01d7ec8
1 file changed
src/components/Restaurant/Restaurant.jsx
@@ -3,7 +3,7 @@ import { useState } from "react";
3
function Restaurant() {
4
const [pizzas, setPizzas] = useState(0);
5
6
- function buttonAdd() {
+ function OrderOne() {
7
setPizzas(pizzas + 1);
8
}
9
@@ -13,7 +13,7 @@ function Restaurant() {
13
<ul className="restaurant__list">
14
<li className="restaurant__item">
15
Pizzas: {pizzas}{" "}
16
- <button className="button restaurant__button" onClick={buttonAdd}>
+ <button className="button restaurant__button" onClick={OrderOne}>
17
Add
18
</button>
19
</li>
0 commit comments