亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

React.js redux 渲染錯誤?

React.js redux 渲染錯誤?

蕭十郎 2018-08-07 12:00:19
react-0.14.0.js:18745 Warning: render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render.頁面是能正常渲染出來,但是為什么會出現這個錯誤?
查看完整描述

2 回答

?
大話西游666

TA貢獻1817條經驗 獲得超14個贊

這個警告是在說你在重新渲染react組件中的子組件或者節點的時候原來的根節點被替換掉了,類似于你將

ReactDom.render(<App />, document.getElementById('a')

App 中的 children 發生了變化,這個時候你可能又調用了 ReactDOM.render 方法,查看你自己的代碼確認下


查看完整回答
反對 回復 2018-08-30
  • 2 回答
  • 0 關注
  • 966 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號