File tree 5 files changed +25
-12
lines changed
5 files changed +25
-12
lines changed Original file line number Diff line number Diff line change 2
2
list-style-type : none;
3
3
display : inline;
4
4
margin : 1em ;
5
- }
5
+ }
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import '../../style.css'
3
2
4
3
const Answer = ( props ) => {
5
4
const city = props . city ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import Hint from '../hint/hint' ;
3
+ import Chance from '../chance/chance' ;
4
+ import Answer from '../answer/answer' ;
5
+ import Letters from '../letter/letter' ;
6
+
7
+ export default class Game extends React . Component {
8
+ state = {
9
+ chances : 5 ,
10
+ country : 'Italy' ,
11
+ city : "Rome"
12
+ }
13
+ render ( ) {
14
+
15
+ return (
16
+ < React . Fragment >
17
+ < Hint country = { this . state . country } />
18
+ < Chance chances = { this . state . chances } />
19
+ < Answer city = { this . state . city } />
20
+ < Letters />
21
+ </ React . Fragment >
22
+ )
23
+ }
24
+ }
Original file line number Diff line number Diff line change 5
5
< meta charset ="utf-8 ">
6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
7
< meta http-equiv ="X-UA-Compatible " content ="ie=edge ">
8
- < link rel ="stylesheet " href ="style.css ">
9
8
< title > Cities Hangman</ title >
10
9
11
10
</ head >
You can’t perform that action at this time.
0 commit comments