The state cannot be updated correctly with setState – Reactjs
I would like to run the following code to have the file selector input a file and manage the input file as a state in the file. But it produces output as described in the comments. I do not know…