Open r3a1d3a1 opened 3 months ago
In here and a few lines after, you're modifying the state directly. Isn't it against React rules? An alternative is like this: [nextImg, ...nextReadyToDisplay] = this.state.readyToDisplay
[nextImg, ...nextReadyToDisplay] = this.state.readyToDisplay
I want to work on this
In here and a few lines after, you're modifying the state directly. Isn't it against React rules? An alternative is like this:
[nextImg, ...nextReadyToDisplay] = this.state.readyToDisplay