单项选择题

在react的生命周期中,初始化状态,使用的方法是()

A.render
B.componentDidMount
C.constructor
D.componentDidUpdate