Use state to manage classnames and update state in the scroll event. Also, you should move the scroll event binding into the componentDidMount function ...
確定! 回上一頁