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={ inputValue: '' } } render(){ if(this.props.gameData.gameState === 3){ return(

Round:

Results!

Round Winner{this.props.gameData.roundWinner}

) } else if(this.props.gameData.gameState === 2){ console.log('multiple players in lobby') return(

Round: {this.props.gameData.round}

) } else if (this.props.gameData.gameState === 1){ console.log('single player method called') return(

Round: {this.props.gameData.round}

) } }; }