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

  1. import React, {Component} from 'react';
  2. import UserList from './UserList';
  3. import WordInput from './wordInput';
  4. export default class GameScreen extends Component{
  5. constructor(props){
  6. super(props);
  7. console.log(this.props.gameData);
  8. this.state={
  9. userScore:0,
  10. round:1,
  11. inputValue: '',
  12. currentWord: ''
  13. }
  14. }
  15. setInputState(word) {
  16. this.setState({
  17. input: word
  18. });
  19. }
  20. render(){
  21. return(
  22. <div>
  23. <UserList gameDataPassed={this.props.gameData} userArray = {this.props.gameData.users} />
  24. <WordInput socket={this.props.socket}/>
  25. </div>
  26. )
  27. };
  28. }