handleZipcodeChange(event) {
    let [value, name, id] = this.getEventValues(event);
    let zipcode = parseInt(value);

    if (isNaN(zipcode)) {
        return;
    }

    this.setState(prevState => ({
        [name]: {
             ...prevState[name],
            [id]: zipcode
        }    
    }
    ));
}
/**
 * Generic event handler that is called to update the zipcode state
 * when the user changes the value.
 * @param {Object} event The event that is triggered on a change of value
 *                          to a form field.
 * @returns 
 */
Generic event handler that is called to update the zipcode state
when the user changes the value.
@param {Object} event The event that is triggered on a change of value
to a form field.
@returns
Generic event handler that is called to update the zipcode state when the user changes the value . @param { Object } event The event that is triggered on a change of value to a form field . @returns
handleZipcodeChange(event) {
    let [value, name, id] = this.getEventValues(event);
    let zipcode = parseInt(value);
    if (isNaN(zipcode)) {
        return;
    }
    this.setState(prevState => ({
        [name]: {
             ...prevState[name],
            [id]: zipcode
        }    
    }
    ));
}
handleZipcodeChange ( event ) { let [ value , name , id ] = this . getEventValues ( event ) ; let zipcode = parseInt ( value ) ; if ( isNaN ( zipcode ) ) { return ; } this . setState ( prevState => ( { [ name ] : { ... prevState [ name ] , [ id ] : zipcode } } ) ) ; }
Generic event handler that is called to update the zipcode state
 when the user changes the value.
Generic event handler that is called to update the zipcode state when the user changes the value .