单项选择题
react中的组件销毁期的周期函数是()
A.componentWillMount
B.componentDidMount
C.componentWillUpdate
D.componentWillUnmount
点击查看答案
相关考题
-
单项选择题
react中,this.setState()作用是()
A.更改数据状态
B.重新渲染界面
C.设置状态
D.更改数据状态并且重新渲染界面 -
单项选择题
jsx语法中,不能嵌入的js数据类型是()
A.数组
B.字符串
C.对象
D.布尔型数据 -
单项选择题
react中向子组件传递一个props的时候,会触发哪一个周期函数()
A.componentWillMount
B.componentDidMount
C.componentWillReciveProps
D.componentWillUnmount
