I am trying to figure out why I have a function that can not read in a value from a setState hook. I now that the setState value of "questionIndex" is updating properl