src/components/login/Profile.js
// Handle changes when user is editing own profile
Handle changes when user is editing own profile
Handle changes when user is editing own profile
handleInputChange(key, value) {
    this.setState({ [key]: value });
  }
handleInputChange ( key , value ) { this . setState ( { [ key ] : value } ) ; }
Handle changes when user is editing own profile
Handle changes when user is editing own profile
// Example: if the key is username, this statement is the equivalent to the following one: // this.setState({'username': value});