Reactjs React Variable Not Updated Stack Overflow

Reactjs React Variable Not Updated Stack Overflow