reactjs – onClick on the user-defined component does not work

I have below component in my render

return to start() {
console.log (& # 39; scrollToTop & # 39;);
leave intervalId = setInterval (this.scrollStep.bind (this), this.props.delayInMs);
this.setState ({intervalId: intervalId});
}


scrollTo Top is also linked in the constructor

this.scrollToTop = this.scrollToTop.bind (this);

The link component is as below

Link class extends BaseComponent {
classToBeAdded () {
this.classToAdded = constStyles[`${this.props.data.linkType}AStyle`];
}
componentWillMount () {
this.classToBeAdded ();
}
dataPassing (obj) {
he came back {
id: obj.id,
value: obj.value
};
}
render () {
he came back (
        
    
    
    
    );
}

}

When I try to click on the link, scroll up is not called