在我的框架中,在初始呈现和重新呈现之后,我需要关于我的反应性组件在DOM中的状态的某些信息,然后我需要将这些信息作为上下文传递给子组件。具体来说,我需要知道呈现的DOM节点是否是其父节点的第一个/最后一个子节点,并将此信息保持为状态,因此我执行如下操作: if (this.REF.current=== this.REF.current.parentNode.
componentWillReceiveProps(nextProps) { this.target.destroy(); // this remove even the DOMtarget; return <div>Hello {this.state.content}</div>;});
我不明白为什么在“条件”为真并且dom节点被插件销