title: Accessing this.props function in react ComponentDidMount
body: <p>I am trying to access parent function (passed as property to child) in child's componentDidMount() but it is showing as undefined. </p>
  
  <pre><code>constructor(props) {
      super(props)
      this.actionis = this.props.actionis.bind(this);
  }
  
  componentDidMount(){
      this.actionis(selectednow, 'disabled');
  }
  </code></pre>
  
  <p><strong>EDIT:</strong> 
  Parent Constructor:</p>
  
  <pre><code>constructor(props) {
          super(props)
          var abc = "";
          this.handlerHeading = this.handlerHeading.bind(this)
          this.handlerHeadingRemove = this.handlerHeadingRemove.bind(this)
       }
  </code></pre>
  
  <p>Parent Render():</p>
  
  <pre><code>&lt;Mappingcomp actionis={this.handlerHeading} /&gt;
  </code></pre>
  
  <p>handlerHeading Function:</p>
  
  <pre><code>handlerHeading(index, disabled) {
          xarraydis.push(index);
      }
  </code></pre>
  
  <p>Error Is: </p>
  
  <blockquote>
    <p>this.actionis is not a function</p>
  </blockquote>
  
  <p>But i can access it in <code>render()</code> function and not in <code>componentDidMount()</code>.</p>