您可以使用
componentDidMount步骤(在初始渲染之后调用)来设置该属性:
componentDidMount() { React.findDOMNode(this).indeterminate = this.props.state === "indeterminate";}如果要使用后续渲染更新该属性,请也执行相同的操作
componentDidUpdate。

您可以使用
componentDidMount步骤(在初始渲染之后调用)来设置该属性:
componentDidMount() { React.findDOMNode(this).indeterminate = this.props.state === "indeterminate";}如果要使用后续渲染更新该属性,请也执行相同的操作
componentDidUpdate。