not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

33 lines
661 B

import React, {Component} from 'react';
import UserList from './UserList';
import WordInput from './wordInput';
export default class GameScreen extends Component{
constructor(props){
super(props);
console.log(this.props.gameData);
this.state={
userScore:0,
round:1,
inputValue: '',
currentWord: ''
}
}
setInputState(word) {
this.setState({
input: word
});
}
render(){
return(
<div>
<UserList gameDataPassed={this.props.gameData} userArray = {this.props.gameData.users} />
<WordInput socket={this.props.socket}/>
</div>
)
};
}