Commit 4178ca4a authored by zarina's avatar zarina 🌊

#3, составлен App.state

parent d6fd3fb1
......@@ -4,6 +4,36 @@ import Basket from "../components/Basket/Basket";
import Menu from "../components/Menu/Menu";
class App extends Component {
state = {
menu: {
Hamburger: {
price: 200,
type: 'eat'
},
Cheeseburger: {
price: 300,
type: 'eat'
},
Fries: {
price: 150,
type: 'eat'
},
Coffee: {
price: 70,
type: 'drink'
},
Tea: {
price: 50,
type: 'drink'
},
Cola: {
price: 100,
type: 'drink'
}
},
totalPrice: 0,
basket: {}
};
render() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment