Javascript – Cannot pass data from one page to another using useState on button click
I am running a function when the user clicks a button, this function updates my useState and adds an array into it as data. This data later on is passed into another webpage where the array objects are displayed in…