ListInput value property preventing editing


I’m trying to use a textarea type React element in my app. However, if I set the ‘value’ property on the component to any string, I am then prevented from editing the text in the textarea. It seems to be locked to whatever the ‘value’ property is set to originally. This seems to be the case if ‘value’ is a fixed string or a variable in curly braces.

I would expect the ‘value’ property to update as I type new text. Is this not how it works? My code is as follows:

<Popover id="options-popover">
   value="Test Value"
   onInput={(e) => this.statejson =}
   placeholder="Insert JSON State Data"
   <ListButton title="Update" onClick={this.updateJSON.bind(this)}/>


In React, you must bind input’s value: value={this.statejson}

I’ve tried this but it still does not allow editing in the textarea. The contents are just locked to whatever this.statejson is initialized to originally.

Anything else I need to do?



Any ideas on this one? I still can’t get it to work once value is set.


This is how it need to be done in react:

onInput={(e) => this.setState({statejson:})}