title: get props from children component through hoc
body: <p>I have a component which is going through an hoc, but i want to get some props of this component inside the hoc. All works fine but i can not find out how to get the props out of this child component into the hoc.</p>
  <p>here is the component which is going through the hoc, and that is this 'getAction' props i want to extract in the hoc</p>
  <pre><code>    class ProjectPage2 extends Component {
              
              
          render() {
                  return (
                                  &lt;Project2 getAction=&quot;getAction&quot;/&gt;
                  );  
          };  
  };
  
  export default PageHandler(ProjectPage2)
  </code></pre>
  <p>here is the hoc component (imported as PageHandler in the ProjectPage2)</p>
  <pre><code>    export default (ChildComponent) =&gt; {
          class ComposedComponent extends Component {
                                 
                                 
                  render() {     
                          // here i want to get the 'getAction' props, which is inside this ChildComponent
                          // because i need to use it into this hoc logic
                          return &lt;ChildComponent {...this.props} /&gt;;   
               
                  }   
          }   
            
          const mapStateToProps = (state) =&gt; {
                  return {       
                          comments: state.project2        
                  }
          };
          
          const loadData = (store) =&gt; {   
                  return store.dispatch(getProject2());
          };
            
          return {               
                  loadData,      
                  component: connect(mapStateToProps, { getProject2 })(ComposedComponent)
      
          }
  };
  </code></pre>
  <p>if some one have an idea it would be great. Thanks.</p>