[javascript] A component is changing an uncontrolled input of type text to be controlled error in ReactJS

Put empty value if the value does not exist or null.

value={ this.state.value || "" }