I'm trying to write a Chrome Snippet to interact with a React page - it takes some JSON data and fills out a form. The problem is, programmatically setting the value of various inputs doesn't update their React state. If there's any interaction which re-renders the component, the data is lost.
I'm wondering if there is any hack I can make use of to trigger the React state update. I tried triggering 'change' and 'keyup' events on the inputs but that didn't work.
In case it wasn't clear, I don't have any access to the page's React code at all. I don't own it or maintain it.