react強制從新渲染

在react中,state和props數據更新,就會從新render,可是當層級過深時,可能就不會觸發渲染,這時候就要用到 this.forceUpdate();
相關文章
相關標籤/搜索