Closed antododo closed 6 years ago
The state shoudn't be updated in render()
1)render() calls this.SendWinner() who execute: this.setState({isGameStarted: false});
this.setState({isGameStarted: false});
2)also SendWinner() calls this.ShowBalances() who execute multiple this.setState. in ShowBalances() this.setState can be change by console.log()
this.setState
console.log()
The state shoudn't be updated in render()
1)render() calls this.SendWinner() who execute:
this.setState({isGameStarted: false});
2)also SendWinner() calls this.ShowBalances() who execute multiple
this.setState
. in ShowBalances()this.setState
can be change byconsole.log()