「版本」React0.142
「环境」chrome浏览器报错:
「信息」Warning: render(): Rendering components directly into document.body is discouraged,since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.
解决办法:
「原因」这个错误是在创建ReactDOM.render()时,放置的容器使用了document.body || document.getElementsByTagName('body')[0]等引起的错误,这样写会把第三方其他js给覆盖掉。