this.input.value = 'password';
<input type="text" value={this.state.value} onChange={this.handleChange} />
You can use a form and grab the values on submission.
<form onSubmit={this.handleSubmission}> <input type="password" name="password" /> </form> this.handleSubmission = event => { // access to event.target.password.value }
https://reactjs.org/docs/uncontrolled-components.html#defaul...