I am using a setTimeout function which runs on a loop alternating between a boolean state using setState. However when this.setState g
setTimeout
setState
this.setState