0

I want to use a function checkboxes from the class Apps that looks like this:

  checkboxes(selecter, id) {
    if (document.getElementById(id).checked === true) {
      this.doboolAPICall(selecter);
    }
  }

in another component that's named "Buttonbox" I want to call it like this:

<Selectbutton id="photoenabled" name="PhotoEnabled" onChange={() => Apps.checkboxes("PhotoEanbled", "photoenabled")}></Selectbutton>

now when I try it out the error is as follows: uncaught error: F.checkboxes is not a function

0 Answers0