I have a React component called Conversation which renders potentially many Parts. I need each Part to know if the Conversation is scrolled. Is this possible, if so how?
class Conversation extends Component {
handleScroll() {
console.log('Each Part should be told that I just fired');
}
render() {
<div className="conversation" onScroll={this.handleScroll.bind(this)}>
<Part />
<Part />
<Part />
</div>
}
}