File tree Expand file tree Collapse file tree 2 files changed +34
-22
lines changed
Expand file tree Collapse file tree 2 files changed +34
-22
lines changed Original file line number Diff line number Diff line change 88 color : # fff ;
99}
1010
11+ .container {
12+ background-color : burlywood;
13+ padding : 2% 5% ;
14+ }
15+
1116.count {
1217 background-color : # fff ;
1318 color : # 000 ;
1722 font-size : 20px ;
1823 font-weight : 500 ;
1924 margin-bottom : 10px ;
25+ text-align : center;
2026}
2127
2228span {
Original file line number Diff line number Diff line change @@ -28,29 +28,35 @@ const App = () => {
2828
2929 return (
3030 < div className = "main" >
31- < p className = "count" >
32- Count :{ " " }
33- < span
34- style = { {
35- color : count >= 0 && count <= 6 ? "#000" : "red" ,
36- } }
37- >
38- { " " }
39- { count }
40- </ span >
41- </ p >
42- { error && < p className = "error" > { error } </ p > }
31+ < div className = "container" >
32+ < p className = "count" >
33+ Count :{ " " }
34+ < span
35+ style = { {
36+ color : count >= 0 && count <= 6 ? "#000" : "red" ,
37+ } }
38+ >
39+ { " " }
40+ { count }
41+ </ span >
42+ </ p >
43+ { error && < p className = "error" > { error } </ p > }
4344
44- < div >
45- < button className = "btn inc" onClick = { handleInc } >
46- Inc
47- </ button >
48- < button className = "btn reset " onClick = { handleReset } >
49- Reset
50- </ button >
51- < button className = "btn dec" disabled = { count === 0 } onClick = { handleDec } >
52- Dec
53- </ button >
45+ < div >
46+ < button className = "btn inc" onClick = { handleInc } >
47+ Inc
48+ </ button >
49+ < button className = "btn reset " onClick = { handleReset } >
50+ Reset
51+ </ button >
52+ < button
53+ className = "btn dec"
54+ disabled = { count === 0 }
55+ onClick = { handleDec }
56+ >
57+ Dec
58+ </ button >
59+ </ div >
5460 </ div >
5561 </ div >
5662 ) ;
You can’t perform that action at this time.
0 commit comments