组件代码
import React, {
Component } from 'react';
class index extends Component {
constructor(props:any){
super(props)
this.state={
show:false
}
this.onScroll = this.onScroll.bind(this)
}
onScroll = () => {
const {
show}