How to make controlled <textarea>
I'm trying to make the simplest possible controlled textarea. What I want is to show only and exactly what I set, not what the user types.
My problem is that this only works for one single character, after which the user can just type freely.
Minimal repro case:
In this example, if the user types "abc" -> "xbc" appears. I want it to simply show x, no matter what happens.
My problem is that this only works for one single character, after which the user can just type freely.
Minimal repro case:
In this example, if the user types "abc" -> "xbc" appears. I want it to simply show x, no matter what happens.
