title: Call function inside constructor of component in react?
body: <p>I have to call function inside constructor as working from call backs which i have to include in constructor but this is "undefined" in constructor.</p>
  
  <pre><code>class XXXXX extends React.Component {
          constructor(props) {
              super(props);
              this.state = 
              {
                  chargebeeInstance : windowChargebeeinit({
                  site: "xxxxxxxxxxxxx-test"})
              }
  
              this.statechargebeeInstancesetCheckoutCallbacks(function(){
                  return{
                      close:function(){
                      this.moveToNextStep();
                  }
              }
  
          })
  
          }
   moveToNextStep(){
  this.props.jumpToNextStep(3);
  }
  </code></pre>
  
  <p>I am not able to call moveToNextStep as this is undefined</p>