title: How to add scroll event in React Component
body: <p>I am using React Version 2.2.</p>
  
  <p>I have tried like this but not working.</p>
  
  <pre><code>`componentDidMount() {
      ReactDOM.findDOMNode(this.refs.table).addEventListener('scroll', this.listenScrollEvent);
  }
  
  componentWillUnmount() {
      ReactDOM.findDOMNode(this.refs.table).removeEventListener('scroll', this.listenScrollEvent);
  }
  
  listenScrollEvent() {
      console.log('Scroll event detected!');
  }
  
  render() {
      return (
          &lt;table ref="table"&gt;
             [...]
          &lt;/table&gt;
      )
  }`
  </code></pre>
  
  <p>Please suggest me correct way to solve this issue.</p>