title: How to get position of element React | Redux (.getBoundingClientRect() + .getWrappedInstance())
body: <p>I am trying to find a position of a component rendered with React. 
  I am using redux, so I had to modify the connect function to: </p>
  
  <pre><code>export default connect(mapStateToProps, mapDispatchToProps,null,{ withRef: true })(MyComponent);
  </code></pre>
  
  <p>Now I am getting a component back when I call: </p>
  
  <pre><code>class OneColumn extends Component { 
      componentDidMount(){
  
          var input = this.refs.myComponentsRef.getWrappedInstance();
  
          console.log(input); // Outputs &gt; TheComponentIWant {props: Object, context: Object, refs: Object, updater: Object, _reactInternalInstance: ReactCompositeComponentWrapper…}
  
          var inputRect = input.getBoundingClientRect(); 
          console.log(inputRect); // Outputs error: Uncaught TypeError: input.getBoundingClientRect is not a function
      }
  //...
  }
  </code></pre>
  
  <p>So I can get the component, however I cannot then get the boundingClientRect.</p>
  
  <p>Anything I am overlooking?</p>
  
  <p>Please help:)</p>