In summary, the recommended methods to store users' passwords are using a hashing method along with a 'salt' which we randomly generate for each password and is stored in the database along with the hashed password, or using specialized hashing algorithms different than the common MD5 or SHAx's, among those we have bcrypt, scrypt or PBKDF2.
The following website provides information on the best methods to encrypt inputted passwords: https://www.meziantou.net/how-to-store-a-password-in-a-web-application.htm
In summary, the recommended methods to store users' passwords are using a hashing method along with a 'salt' which we randomly generate for each password and is stored in the database along with the hashed password, or using specialized hashing algorithms different than the common MD5 or SHAx's, among those we have bcrypt, scrypt or PBKDF2.
The following site provides a tutorial on how to create a login screen using React and get the inputs from the user to later process them: https://contactmentor.com/login-form-react-js-code/