Hacker News new | ask | show | jobs
by dimgl 3044 days ago
That being said, you might be thinking about this incorrectly if you're doing this.

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
    }
2 comments

You still lose things like validation on blur and displaying real-time password strength.
It might be a fair workaround, but it sucks to regress to storing truth in the DOM.