Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
E
exam_7
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zarina
exam_7
Commits
4178ca4a
Commit
4178ca4a
authored
Mar 28, 2020
by
zarina
🌊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#3
, составлен App.state
parent
d6fd3fb1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
App.js
src/containers/App.js
+30
-0
No files found.
src/containers/App.js
View file @
4178ca4a
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment