开发时遇到报错:React: Failed to execute removeChild on Node。
如下,更改isActive时会报错:1234567891011121314//App.jsrender() { { this.state.isActive? <Test />:null }}// Test.jsrender() { <canvas />}
解决方案:
更改为如下1234567// Test.jsrender() { <div> <canvas /> </div>}