react强制页面刷新

文章参考 在react中,state和props数据更新,就会从新render,可是当层级过深时,可能就不会触发渲染,这时候就要用到react this.forceUpdate();
相关文章
相关标签/搜索