I am building a tiny Chrome Extension for my own personal use.
In Facebook's ads manager(Uses React) i want to change a textarea field's value to a value generated by my chrome extension.
i tried it doing the old fashion way like this
document.querySelector('textarea').value = myValue;
this changes the value on screen but in chrome's inspect element the value doesn't change and when i focus on the input element value resets.
Here is the picture of how react component looks like:
Here is the picture of this react components props & states:
In above component i want to change the state.displayValue to my value.
how it can be done?