I have a static method which returns a promise:
static getInfo(ID)
 { return new Promise((resolve, reject) => {   
    api.getList(ID)
      .then((List) => {
        resolve(Info);
      })
      .catch((error) => {
        // here I need to access this.props which is undefined
        console.log(this.props);
      });
     .catch(reject);
   });
 }
this.props is undefined within the promise. how can I access it?
 
    