Javascript – Cannot update useState variable to dynamically update React page
I want to dynamically update my page's content when an excel file is uploaded. I can handle the upload and convert it into a json array. The problem is that when I use setContent(json[x].Data) the Content stays empty. I tried…