handleSubmit(event) {
    event.preventDefault();
    const address = event.target.form.querySelector('input').value;
    if (address) {
      const invitee = this.getInvite(address);
      if (invitee) {
        this.renderRsvpForm = true;
        this.setState({ invitees: invitee });
      }
    } else {
      this.setState({ error: 'Please enter your street number' });
    }
  }
/*
  * handler for start button
  * collect address info and try to find guests
  * if guests found set state to render the rsvp form
  * else show error
  */
handler for start button
collect address info and try to find guests
if guests found set state to render the rsvp form
else show error
handler for start button collect address info and try to find guests if guests found set state to render the rsvp form else show error
handleSubmit(event) {
    event.preventDefault();
    const address = event.target.form.querySelector('input').value;
    if (address) {
      const invitee = this.getInvite(address);
      if (invitee) {
        this.renderRsvpForm = true;
        this.setState({ invitees: invitee });
      }
    } else {
      this.setState({ error: 'Please enter your street number' });
    }
  }
handleSubmit ( event ) { event . preventDefault ( ) ; const address = event . target . form . querySelector ( 'input' ) . value ; if ( address ) { const invitee = this . getInvite ( address ) ; if ( invitee ) { this . renderRsvpForm = true ; this . setState ( { invitees : invitee } ) ; } } else { this . setState ( { error : 'Please enter your street number' } ) ; } }
handler for start button
 collect address info and try to find guests
 if guests found set state to render the rsvp form
 else show error
handler for start button collect address info and try to find guests if guests found set state to render the rsvp form else show error