stepNumber value

From where the step number value gets updated

when we do the setState
we update the stepnumber right ?

From where it gets the value

  1. initialized history

const history = {squares :arr(9).fill(null)}

  1. history object inside the setState function

Detailed explination : https://ide.codingblocks.com/s/295663