I need to find the offsetLeft of a component.
componentDidMount(){
var tesNo =ReactDOM.findDOMNode(this.refs.dropDown.refs.input.offsetLeft)
}
<ReactAutocomplete
ref="dropDown"
/*.......*/
/>
While debugging I get the value of the variable tesNo .After that I am getting this error:
Consider adding an error boundary to your tree to customize error handling behavior. Visit this site to learn more about error boundaries. Invariant Violation: Argument appears to not be a ReactComponent
How to solve this error?