单项选择题

ref的值是函数的时候这个函数如何触发()

A.自动触发
B.在componentWillMount中触发
C.render中触发
D.constructor中触发