constructor()

in client/src/pages/checkout.js [33:48]


  constructor() {
    super();
    this.state = {
      openSuccessDialog: false,
      checkoutErrors: undefined, // Stating this explicity for page
    };

    // Bind "this" component to functions
    this.onSubmit = this.onSubmit.bind(this);
    this.toggleSuccessDialog = this.toggleSuccessDialog.bind(this);
    this.setCheckoutErrors = this.setCheckoutErrors.bind(this);

    // Initial default for updateParent
    // Trigger parent components update lifecycle
    this.updateParent = () => {};
  }