Closed ArmandDu closed 5 years ago
const initState = { player: true, board: [ '', '', '', '', '', '', '', '', ''], winner: null, } //.... let newBoard = {...this.state.board} ; //<-- line 59
It seems like you are converting an Array into an Object. should be
let newBoard = [...this.state.board] ; //<-- line 59
ohh yes, you are right. My bad
Fixed
It seems like you are converting an Array into an Object. should be