1
You are setting json string to randomDataJSON state variable, and trying use JSON string as an object. You can try to console.log(randomDataJSON) to confirm my suspicions. I think you should not convert your data object to json in first place, so setRandomDataJSON(JSON.stringify(userData, null, 2...