If you want to access a state prop inside of setTimeout, use Thanks to a discussion on Github: https://github.com/facebook/react/issues/14010
If you want to access a state prop inside of setTimeout, use Thanks to a discussion on Github: https://github.com/facebook/react/issues/14010