Javascript Not Able To Access Updated State In React Stack Overflow

Javascript Not Able To Access Updated State In React Stack Overflow