多项选择题
下列生命周期中,调用完setState 一定会执行的生命周期是()
A.componentWillReceiveProps
B.shouldComponentUpdate
C.componentWillUpdate
D.componentDidUpdate
点击查看答案&解析
相关考题
-
单项选择题
下列哪一组获取的是触发当前事件的手指列表()
A.event.touches
B.event.targetTouches
C.event.changedTouches -
多项选择题
关于React 的function组件说法正确的是()
A.函数时组件没有state
B.函数式组件没有生命周期
C.函数式组件没有props
D.函数式组件不能重新渲染 -
单项选择题
React 类式组件在挂载阶段的执行顺序是()
A.constructor ->componentWillMount ->render ->componentDidMount
B.componentWillMount ->constructor ->render ->componentDidMount
C.componentWillMount ->componentDidMount ->render ->constructor
D.constructor ->componentWillMount ->componentDidMount ->render
