I stumbled upon an issue while working on a project I had a form built using React, and how browser autofill interacted with it.

You know, when the browser puts your username/password automatically because you typed it already in the past?

That’s autofill, and that’s the cause of my problem. In particular I replicated it on Chrome and Firefox, but any browser might run into this.

The form was a usual and simple form built with the useState hook.

#react #react-native #reactjs

How I fixed an issue with a React login form state and Browser autofill
10.20 GEEK