Skip to content

13.思考题及解答

请同学们调自主试componentWillUnmount

分析:

  • 搞清楚componentWillUnmount是在什么时候触发
  • 准备一个案例,有一个按钮点击按钮可以显示隐藏一个类组件

基于 VitePress 构建